-
Notifications
You must be signed in to change notification settings - Fork 35
prevent non existing key "bypass_filter_assign_group" in ticket.class… #401
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
….php fix PHP Warning (2): Undefined array key "bypass_filter_assign_group" in /var/www/glpi/plugins/escalade/inc/ticket.class.php at line 1270
| 'is_assign' => 1, | ||
| ]; | ||
| if ($config->fields['use_filter_assign_group'] && !$user_config->fields['bypass_filter_assign_group']) { | ||
| if ($config->fields['use_filter_assign_group'] && isset($user_config->fields['bypass_filter_assign_group']) && !$user_config->fields['bypass_filter_assign_group']) { |
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.
| if ($config->fields['use_filter_assign_group'] && isset($user_config->fields['bypass_filter_assign_group']) && !$user_config->fields['bypass_filter_assign_group']) { | |
| if ($config->fields['use_filter_assign_group'] && (!isset($user_config->fields['bypass_filter_assign_group']) || !$user_config->fields['bypass_filter_assign_group'])) { |
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.
| if ($config->fields['use_filter_assign_group'] && isset($user_config->fields['bypass_filter_assign_group']) && !$user_config->fields['bypass_filter_assign_group']) { | |
| if ($config->fields['use_filter_assign_group'] ?? false && !($user_config->fields['bypass_filter_assign_group'] ?? false)) { |
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 use / test the second proposal and let me know if it works for you.
|
Hello, if (
$config->fields['use_filter_assign_group']
&& isset($user_config->fields['bypass_filter_assign_group'])
&& !$user_config->fields['bypass_filter_assign_group']
) {
$condition['id'] = $groups_id_filtered;
}-- edit |




….php
fix PHP Warning (2): Undefined array key "bypass_filter_assign_group" in /var/www/glpi/plugins/escalade/inc/ticket.class.php at line 1270
Checklist before requesting a review
Please delete options that are not relevant.
Description
Screenshots (if appropriate):