Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ public function showForm($ID, $options = [])
$condition = [
'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']) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'])) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)) {

Copy link
Contributor

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.

$condition['id'] = $groups_id_filtered;
}
TemplateRenderer::getInstance()->display('@escalade/escalade_form.html.twig', [
Expand Down