[Koha-bugs] [Bug 12133] Guarantor requirements when registering a patron

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 6 07:54:56 CEST 2023


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

--- Comment #33 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
(In reply to Sam Lau from comment #32)
> Everything in test plan worked fine for me, just failing
> t/db_dependent/Koha/Patron.t. 
> 
> # Subtest: guarantor requirements tests
>     1..6
>     ok 1 - Child patron can be stored without guarantor when
> ChildNeedsGuarantor is off.
>     ok 2 - Exception thrown when guarantor is required but not provided.
>     ok 3 - Exception thrown when child patron is added as guarantor.
> DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
> execute failed: Incorrect datetime value: 'SCALAR(0xaaab1c4b5b58)' for
> column `koha_kohadev`.`borrowers`.`updated_on` at row 1 at
> /kohadevbox/koha/Koha/Object.pm line 170
>     # Looks like you planned 6 tests but ran 3.
> not ok 25 - guarantor requirements tests
> 
> #   Failed test 'guarantor requirements tests'
> #   at t/db_dependent/Koha/Patron.t line 1588.
> Invalid value passed, borrowers.updated_on=SCALAR(0xaaab1c4b5b58) expected
> type is datetime# Looks like your test exited with 255 just after 25.
> Dubious, test returned 255 (wstat 65280, 0xff00)
> Failed 1/25 subtests

Hmm, I'm unable to repeat this. Did you test this with current master? However
for some reason 'guarantor requirements tests' fail for me randomly with error
"Child patron cannot be a guarantor." This probably happens because $child2 is
first attempted to be stored with child as guarantor and then without it..?
Adding $child2->discard_changes after first store seems to help.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list