-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix - Default tech in Tasks Templates #19427
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
base: main
Are you sure you want to change the base?
Conversation
This doesn't seem logical to me. If I create a task template, I expect it to show as my task when used. Only in very specific circumstances could I see overriding the task author in a template as useful. Therefore, using the current user should be the default if not specified rather than having a task show as written by nobody. |
The purpose of this Pull Request is to restore the default behavior of GLPI, which is: if no actor is specified in the template, GLPI defaults to the logged-in user. The PR mentioned by Romain removed this default behavior. Now, if no actor is specified in the template, no actor is selected in the task, which has led to support requests. I understand that leaving the template field empty should result in an empty task field. However, there is a need for the option to set the logged-in user as the default when selecting the template. To address this, I propose adding a new option in the
|
This looks like correct to me. @cconard96 are you OK with this proposal? |
That isn't what the PR description said though.
That description makes it sound like not setting a technician in the template should result in the task not having a technician instead of the current behavior which has the task author as the current user by default.
I can't think of a legitimate reason for tasks to have no technician assigned or for the default, empty value for a template to result in a task with no technician assigned. |
35f8dcb
to
3341ba8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some tests (surprising that it hasn't already been requested — not naming anyone 😄).
Checklist before requesting a review
Please delete options that are not relevant.
Description
In task templates, when the "By" parameter is left empty, selecting that template in the ticket task creation form should result in the "Technician" field being empty as well. However, the current behavior incorrectly assigns the logged-in user as the technician. This PR fixes the issue so that the "Technician" field correctly remains empty, respecting the task template configuration.
Rollback a part of this PR : #17360