-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix : Category and Type unavailable in Ticket Template selectable fields #21362
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: 11.0/bugfixes
Are you sure you want to change the base?
Fix : Category and Type unavailable in Ticket Template selectable fields #21362
Conversation
Not sure. In GLPI 10, the behavior was:
|
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.
See @cconard96 comments.
* @return bool | ||
**/ | ||
public static function showForITILTemplate(ITILTemplate $tt, $withtemplate = 0): bool | ||
public static function showForITILTemplate(ITILTemplate $tt, $withtemplate = 0, $withtypeandcategory = true): bool |
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.
I’m not sure modifying this function is necessary, as it is only called once and with $withtypeandcategory
set to false
. So, on line 144, the code remains $fields = $tt->getAllowedFieldsNames(false);
as in the original version.
public static function showForITILTemplate(ITILTemplate $tt, $withtemplate = 0, $withtypeandcategory = true): bool | |
public static function showForITILTemplate(ITILTemplate $tt, $withtemplate = 0): bool |
Checklist before requesting a review
Please delete options that are not relevant.
Description
In the list of fields that can be selected as Predefined/Mandatory and Hidden Fields for a Ticket Template, the category and type were no longer visible. (Whereas they were visible in version 10.)
Screenshots (if appropriate):