https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40136

--- Comment #30 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 196118
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196118&action=edit
Bug 40136: (follow-up) Fix IsItemIssued.t mock_userenv

mock_userenv was called before the test patron was created and
used the default borrowernumber (51), which doesn't necessarily
exist in the test database. This caused safe_to_delete to crash
on the not_same_branch check when Koha::Patrons->find returned
undef.

Move mock_userenv after patron creation and pass the actual
borrowernumber.

Signed-off-by: Tomás Cohen Arazi <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to