Koha-clms/installer
Tomas Cohen Arazi 8f91dcda70 Bug 27808: (QA follow-up) Make sure the update catches the items we want
This query:

SELECT *
FROM items
LEFT JOIN issues
ON issues.itemnumber=items.itemnumber
WHERE items.onloan IS NULL;

returns 961 rows on the sample data, with 2 items checked out and onloan
set to NULL.

With this tweak, the query only matches the 2 checkout items with onloan
set to NULL:

SELECT *
FROM items
LEFT JOIN issues
ON issues.itemnumber=items.itemnumber
WHERE items.onloan IS NULL AND issues.issue_id IS NOT NULL;

This is the query that needs to be used on the atomic update for
filtering the items to be updated.

This patch does that.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8df3e02885)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8a59b80e7e)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-03-14 18:53:57 +00:00
..
data/mysql Bug 27808: (QA follow-up) Make sure the update catches the items we want 2021-03-14 18:53:57 +00:00
externalmodules.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
html-template-to-template-toolkit.pl Bug 25360: (follow-up) Remove the https FIXME in Auth.pm 2020-08-31 20:05:23 +00:00
install.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
onboarding.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00