[Koha-bugs] [Bug 15524] Set limit on maximum possible holds per patron by category
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 16 12:20:15 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15524
--- Comment #33 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 71740
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71740&action=edit
Bug 15524: (QA follow-up) Fix meaningless test
The last test claims to allow a hold when branch=5 and patron=5, but look
at the preceding statements:
$rule_branch->max_holds(5);
$rule_branch->update();
$rule_branch->max_holds(5);
$rule_branch->insert();
The last insert will not be done, since the record is already present.
A create should have triggered an error on the primary key.
Obviously, we should use $rule_all.
Test plan:
Run the test again.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list