Revert "Bug 28510: Remove unnecessary conditional"
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Oct 2021 13:55:33 +0000 (15:55 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Oct 2021 14:28:55 +0000 (16:28 +0200)
commit58c765c492c14d7b311eb5102684fd594317a5fd
treef8e28a0d2e7a176d555aa37cbb5768320c6fefa0
parentc7eb047126275fe9c38149697ee14c3834acabfe
Revert "Bug 28510: Remove unnecessary conditional"

This reverts commit d284735d05f67226feba1b4b9e7bf17259eaabaf.

The following test was failing randomly:
 #   Failed test 'take from lowest cost branch (don't use cost matrix) holding branch'
 #   at t/db_dependent/HoldsQueue.t line 1494.
 #          got: 'LHKtxLk'
 #     expected: 'JL9C_OR'
 # Wrong pick-up/hold for first target (pick_branch, hold_branch, reserves, hold_fill_targets, tmp_holdsqueue)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/HoldsQueue.pm