glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
3.97k stars 1.25k forks source link

Fix Default Tech With Task Template #17360

Closed tsmr closed 3 days ago

tsmr commented 5 days ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #0

When use task template without define a users_id_tech, the loaded template blank the users_id_tech field.

cedric-anne commented 3 days ago

I'm not sure this should be done in the ajax file. Also, a test case should be added.

It should be placed either in this ajax file, either in this inline JS piece of code: https://github.com/glpi-project/glpi/blob/0a7f091f65f6ade62fbc376c1fe664bc4a24169d/templates/components/itilobject/timeline/form_task.html.twig#L510-L518

Both of them can only be tested with a end-to-end test and it is not possible on the 10.0/bugfixes branch yet.