Skip to content

Fix Bypass filtering on the groups assignment option#291

Merged
Rom1-B merged 7 commits intomainfrom
fix-escalade-group-list
Mar 10, 2025
Merged

Fix Bypass filtering on the groups assignment option#291
Rom1-B merged 7 commits intomainfrom
fix-escalade-group-list

Conversation

@Lainow
Copy link
Copy Markdown
Contributor

@Lainow Lainow commented Feb 26, 2025

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes !36545
  • Here is a brief description of what this PR does
    Fixed Bypass filtering on the groups assignment option because it filtered which groups to escalate to even though the user was supposed to bypass filtering

Screenshots (if appropriate):

@Lainow Lainow self-assigned this Feb 26, 2025
@Lainow Lainow requested review from Rom1-B and stonebuzz February 26, 2025 14:07
@Lainow Lainow force-pushed the fix-escalade-group-list branch from 6edeb5c to 32a42f3 Compare February 26, 2025 14:14
@stonebuzz
Copy link
Copy Markdown
Contributor

@Lainow can you rebase

@stonebuzz
Copy link
Copy Markdown
Contributor

@Lainow

Can you check with the customer that it's working properly?

Comment thread inc/ticket.class.php Outdated
'is_assign' => 1
];
if ($config->fields['use_filter_assign_group']) {
if ($config->fields['use_filter_assign_group'] && !$user_config->fields['use_filter_assign_group']) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The fix seems correct, but I notice that the name use_filter_assign_group is confusing because it is the same in both the global configuration and the user configuration, yet the behavior is opposite:

  • In the global configuration: "Enable filtering on the groups assignment"
  • In the user configuration: "Bypass filtering on the groups assignment"

I suggest renaming the user-level option to bypass_filter_assign_group to avoid confusion.

@Lainow Lainow requested a review from Rom1-B March 3, 2025 13:19
Comment thread hook.php Outdated
@Lainow
Copy link
Copy Markdown
Contributor Author

Lainow commented Mar 3, 2025

@Lainow

Can you check with the customer that it's working properly?

That's good

Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
@stonebuzz
Copy link
Copy Markdown
Contributor

@Lainow can you validate with customer?

@Lainow Lainow requested a review from Rom1-B March 6, 2025 09:10
@Lainow
Copy link
Copy Markdown
Contributor Author

Lainow commented Mar 10, 2025

@Lainow can you validate with customer?

It's ok

@Rom1-B Rom1-B merged commit 000a7c2 into main Mar 10, 2025
@Rom1-B Rom1-B deleted the fix-escalade-group-list branch March 10, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants