Bug 13332: Fix conflict between 5304 and 10860
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 25 Nov 2014 14:04:25 +0000 (15:04 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 26 Nov 2014 14:25:04 +0000 (11:25 -0300)
commitb141e6d42a6ac4ef58a2eaf831d97f32fb5e48c8
treee3d680b5d5b06bf3b75d59a4bf6862050baa8622
parent2cc8e74487aac6d8e091a72ebd398a11efa7ab76
Bug 13332: Fix conflict between 5304 and 10860

These 2 bugs are in conflict.
The first one always join the issue table, the second one join on this
table too if the OnSiteCheckouts pref is enable.
So DBI raises an error if the pref is enabled (2 joins on the same
table).

This patch removes the conditional join.

Test plan:
Go on a detail record page with items and verify that items are list and
that the error no more appears in the log file.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Reproduced the problem, the patch fixes it, no noticeable regression found.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, items are visible again.
Passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Items.pm
t/db_dependent/Items.t