Bug 30724: Fix selenium tests - fix logic if no borrowernumber passed

Then consider we want to edit the logged in user settings

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-10-16 10:21:08 +02:00 committed by Lucas Gass
parent 1a6e53b7c1
commit b4bc754439
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ if ( $TwoFactorAuthentication ne 'enabled' && $TwoFactorAuthentication ne 'enfor
my $op = $cgi->param('op') // '';
my $patron_id = $cgi->param('borrowernumber') // '';
my $another_user = $patron_id ne $loggedinuser;
my $another_user = $patron_id && $patron_id ne $loggedinuser;
my $logged_in_user = Koha::Patrons->find($loggedinuser);