Bug 39875: (QA follow-up): Correct historycheck ui_context

This ui_context is supposed to be opac, not staff.
For the purposes of these tests, this is not important, as the ui_context is
only needed for the template params and this is testing if the history check
stage is supposed to show or not.
Reckon this was a copy paste without consequences hence missed, but the code
is now semantically more correct.

prove t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit dfd028871a)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Pedro Amorim 2025-06-06 09:44:23 +00:00 committed by Paul Derscheid
parent ed3f66e0b8
commit 18daee91ff
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ subtest 'show_history_check' => sub {
my $ill_request_with_no_borrowernumber = $builder->build_sample_ill_request( { borrowernumber => undef } );
my $new_opac_history_check =
Koha::ILL::Request::Workflow::HistoryCheck->new( $metadata_with_no_cardnumber, 'staff' );
Koha::ILL::Request::Workflow::HistoryCheck->new( $metadata_with_no_cardnumber, 'opac' );
is(
$new_opac_history_check->show_history_check($ill_request_with_no_borrowernumber),