I want to update my iTop to version 3.0.2. So far (version 2.6) I had the following customization in an extension:
<bricks><!-- Deletes the existing button "New request" --><brickid="services"xsi:type="Combodo\iTop\Portal\Brick\BrowseBrick"_delta="delete"></brick><!-- Adds a new button to create a new ticket directly without selecting the service category first. --><brickid="quick-new-user-request"xsi:type="Combodo\iTop\Portal\Brick\CreateBrick"_delta="define"><active>true</active><rank><default>10</default></rank><width>6</width><modal>true</modal><title><default>Brick:Portal:QuickNewUserRequest:Title</default></title><description>Brick:Portal:QuickNewUserRequest:Title+</description><visible><home>true</home></visible><decoration_class><default>fc fc-new-request fc-2x</default></decoration_class><!-- Class that will be create created with the form --><class>UserRequest</class><rules><ruleid="contact-to-userrequest"/><ruleid="servicesubcategory-to-userrequest"/><ruleid="go-to-open-request-on-submit"/></rules></brick></bricks>
This code made it possible that the user could create a request without extra selecting the service category and sub service categories. We have only one service category and one sub service category - that's why the customization.
Unfortunately, this does not work anymore in version 2.7 or 3.0.3. I get an error in the portal when I try to create a new request. If I remove "<rule id="servicesubcategory-to-userrequest">" I don't get an error message, however the service category and sub-service category is also not preselected anymore:</rule>
What do I need to change to get the original functionality back?
Thank you very much for feedback.
Hi guys,
I want to update my iTop to version 3.0.2. So far (version 2.6) I had the following customization in an extension:
This code made it possible that the user could create a request without extra selecting the service category and sub service categories. We have only one service category and one sub service category - that's why the customization.
Unfortunately, this does not work anymore in version 2.7 or 3.0.3. I get an error in the portal when I try to create a new request. If I remove "<rule id="servicesubcategory-to-userrequest">" I don't get an error message, however the service category and sub-service category is also not preselected anymore:</rule>
What do I need to change to get the original functionality back?
Thank you very much for feedback.
Best regards
Sebastian
Hello,
Take a look at the migration notes
What is the definition of the action rules ?
Hello Pierre,
thank you very much for your feedback.
First of all, I'm a total loaner as far as iTop development is concerned but I'll give it a try anyway.
In the Migration Note it says not to use action rules in a brick anymore. Instead you should use navigation rules in the corresponding form.
Where can I look for such a solution to get to my goal (service and service subcategory are already preselected)?
Thank you very much for your help.
Best regards
Sebastian