-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GLPI 10.0.0] BR for Tickets does not receive correct Actors #11671
Comments
Please try with latests nightly build |
Tried with latest 10.0 nightly from 24.5.2022: Behavior is still the same. Also checked repository and there does not seem to be fixes for this part of code. |
* send new _actors key to ticket rule engine fix #11671 * add tests * lint * Fix CS Co-authored-by: Johan Cwiklinski <trasher@x-tnd.be>
Thanks for the fix. |
Guys, there is one issue with fix #11728 and I would like to hear your opinion on this.. Would it be possible to move updateActors call to prepareInputforUpdate method before addAdditionalActors() call? |
Hi, Also question is what should we do in plugins if we want to assign Ticket to some actor? Should we alter |
#12130 should fix this issue.
You should add an entry in |
My bad. If |
Thanks the patch works (possibly assignment from category worked also before, my fault..) Maybe would not be better to not reset old index keys here for backward compatibility or you want to get rid of these arrays in near future? |
Code of Conduct
Is there an existing issue for this?
Version
10.0.0
Bug description
There were changes to code how Actors are handled in version 10.0.0 on frontend.
BR for tickets were not fully updated to handle actors in input as _actors array.
Previously they were defined for each type as array (example_groups_id_assign) which was submitted directly by form.
This causes that BR for Tickets do not receive complete information about current actors on Tickets.
If there is rule with has criteria based on actors like _groups_id_assign or others, rule is not working correctly.
Code will need probably to copy the _actors arrays to old arrays users_id* groups_id* if we want to make rules working and keep backward compatibility at the same time.
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
Stock 10.0.0 without plugins
Anything else?
Current BR For tickets still uses _groups_id_assign for example here:
glpi/src/RuleTicket.php
Line 581 in dfe8065
The text was updated successfully, but these errors were encountered: