[Koha-bugs] [Bug 23070] Use Koha::Hold in C4::Reserves::RevertWaitingStatus
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat May 2 17:36:18 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23070
didier <didier.gautheron at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |didier.gautheron at biblibre.c
| |om
--- Comment #23 from didier <didier.gautheron at biblibre.com> ---
(In reply to Victor Grousset/tuxayo from comment #22)
> I got an error on the tests, is there any thing else to do before running
> them?
Look like theres's a bug should be
diff --git a/C4/Reserves.pm b/C4/Reserves.pm
index 38db7d6e0e..397c33f0bd 100644
--- a/C4/Reserves.pm
+++ b/C4/Reserves.pm
@@ -1994,7 +1994,7 @@ sub RevertWaitingStatus {
## Increment the priority of all other non-waiting
## reserves for this bib record
my $holds = Koha::Holds->search({ biblionumber => $hold->biblionumber,
priority => { '>' => 0 } })
- ->update({ priority => \'priority + 1', no_triggers
=> 1 });
+ ->update({ priority => \'priority + 1'},
{no_triggers => 1 });
## Fix up the currently waiting reserve
$hold->set(
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list