Closed kabassanov closed 2 years ago
Category also disappears during mailcollector ticket import. At the beggining the field is present in the input/output array (passing from 0 to the correct value according to a rule), but after an assignment "type = 2", categories fields [itilcategories_id] => ... and [itilcategories_id_cn] simply disappear.
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Didn't see anything to correct this. So for me, the issue is still present.
Hi,
As discussed in #10553 , in rules, $input
only contains values that were passed in input. So in massive actions context, or followup creation context, it is normal that many values are missing, and changing this may lead to many unwanted side effects.
The fact that some values that are always present even if no input related to them is actually passed is, IMHO, due to a bad design.
I am pretty sure that the behaviour you are searching for will not be available with a simple fix and will only be available after a huge refactoring of the business rules system, so I tend to close this issue and add a wontfix
tag. @orthagh @trasher, what do you think about this ?
Regards
Hi cedric-anne,
This issue seems to be solved by https://github.com/glpi-project/glpi/pull/10075. I have to make some additional tests, but I'm pretty sure it is what I need in my case.
Sorry, as you pointed out in your previous message, it could not work like this, simply because massive action "input" does not contain itilcategories_id...
Code of Conduct
Is there an existing issue for this?
Version
9.5.6
Bug description
I'm splitting #9698.
It appears that itilcategories_id is not set in input array for ticket modification. As I explained in #9698 , it seems to be correctly set while changing ticket status from dropdown, but not from massive actions or followups
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response