Skip to content

Don't generate errors when searching customer user#744

Open
pboguslawski wants to merge 5 commits intoznuny:rel-6_5-devfrom
ibpl:rel-6_5-IB#1156084
Open

Don't generate errors when searching customer user#744
pboguslawski wants to merge 5 commits intoznuny:rel-6_5-devfrom
ibpl:rel-6_5-IB#1156084

Conversation

@pboguslawski
Copy link
Copy Markdown
Contributor

Proposed change

When agent searches for customer user with spaces only (i.e. entering 4 spaces into Customer user field on new phone ticket page) application generates errors like

Message: Need Search, UserLogin, PostMasterSearch, CustomerIDRaw or CustomerID!

in

Module: Kernel::System::CustomerUser::DB::CustomerSearch Line: 272
Module: Kernel::System::CustomerUser::LDAP::CustomerSearch Line: 384

This mod fixes it by returning empty set if no search parameters are defined (after spaces are removed from search pattern).

Corresponding error message is fixed in Kernel/System/CustomerUser/LDAP.pm also to contain all accepted search parameters.

Type of change

  • '1 - 🐞 bug 🐞' - Bugfix (non-breaking change which fixes an issue)

Additional information

Author-Change-Id: IB#1156084

Checklist

  • The code change is tested and works locally.(❗)
  • There is no commented out code in this PR.(❕)
  • You improved or added new unit tests.(❕)
  • Local ZnunyCodePolicy passed.(❕)
  • Local UnitTests / Selenium passed.(❕)
  • GitHub workflow CI (UnitTests / Selenium) passed.(❗)

When agent searches for customer user with spaces only (i.e. entering
4 spaces into `Customer user` field on new phone ticket page)
application generates errors like
```
Message: Need Search, UserLogin, PostMasterSearch, CustomerIDRaw or CustomerID!
```
in
```
Module: Kernel::System::CustomerUser::DB::CustomerSearch Line: 272
Module: Kernel::System::CustomerUser::LDAP::CustomerSearch Line: 384
```
This mod fixes it by returning empty set if no search parameters
are defined (after spaces are removed from search pattern).

Corresponding error message is fixed in `Kernel/System/CustomerUser/LDAP.pm`
also to contain all accepted search parameters.

Author-Change-Id: IB#1156084
Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant