]> git.koha-community.org Git - koha.git/commit
Bug 16004: Replace items.new with items.new_status
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Mar 2016 09:53:35 +0000 (09:53 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 31 Mar 2016 16:57:13 +0000 (16:57 +0000)
commit038b5f8156cf8ed123b7e28a25c31f35630b95e7
treeaa9f09b991f8bc45135ee90ce28c5a0eea446b33
parentd5f7f4072454e7c816d901de341bcc29401122ae
 Bug 16004: Replace items.new with items.new_status

The items.new column is badly named, the Koha::Item->new accessor will
never returns this value, but the constructor will be called instead.
This patch renames it with new_status to avoid the ambiguity.

Test plan:
0/ Do not apply this patch
1/ Define some rules in the "Automatic item modifications by age" tool
with at least one items.new field used
2/ Apply this patch
3/ Execute the update DB entry
4/ Reload the tool page and confirm that the changes have been taken
into account

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
C4/Items.pm
installer/data/mysql/atomicupdate/bug_xxxx-change_new_to_new_status.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
t/db_dependent/Items/AutomaticItemModificationByAge.t