Closed George2x closed 7 years ago
Have you tested with the version 1.2.1 plugin at first?
Not yet but I'll do right now and I'll let you know. Thanks for your help and this excellent work in the plugin.
I update to 1.2.1 the plugin and did the test, but problem continues as you could see in the screenshot attached.
I have reproduced your bug.
Can you test by replacing the file validation.class.php (https://github.com/InfotelGLPI/consumables/blob/master/inc/validation.class.php) in glpi/plugins/consumables/inc/ ?
Thank you for the change, is almost done. I've tested and worked in the Request, Request Rejected but still is a problem with the approver in Request accepted.
Can you retry the test by replacing the file again?
It works !, thank for your attention and support in the resolution.
Refuse or approve materials, I received notification with empty value for ##consumablerequest.validator##, using the template Consumables Request Validation (first img). Also, only for refuse option I received the notification with the status "Waiting for approval" and must be Rejected or similar. Using the for each, it duplicates the tags with empty fields (2nd img).
The template is:
A continuación el resultado de aprobación de material(es):
FOREACHconsumabledatas
lang.consumablerequest.requester## : ##consumablerequest.requester
lang.consumablerequest.validator## : ##consumablerequest.validator
lang.consumablerequest.consumabletype## : ##consumablerequest.consumabletype
lang.consumablerequest.consumable## : ##consumablerequest.consumable
lang.consumablerequest.number## : ##consumablerequest.number
lang.consumablerequest.request_date## : ##consumablerequest.request_date
lang.consumablerequest.status## : ##consumablerequest.status
lang.consumable.entity## :##consumable.entity
ENDFOREACHconsumabledatas
lang.consumablerequest.comment## : ##consumablerequest.comment