]> git.koha-community.org Git - koha.git/commit
Bug 25851: (bug 18928 follow-up) Remove holdallowed rule is value is an empty string
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Jun 2020 06:37:18 +0000 (08:37 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 17 Jul 2020 19:48:42 +0000 (19:48 +0000)
commit266d7de35a9f271403318eae1c55f46077865a6e
treee477d6095764ead02bea4f94a5a0d099040330e4
parentc0136357c539ed069504fe02bdda1ba7ab54541a
Bug 25851: (bug 18928 follow-up) Remove holdallowed rule is value is an empty string

On the interface, if "Hold policy" is "Not set", the rule does not exist
in the table. We should reflect that during the update DB process.

Test plan:
1. Set "Hold policy" to "Not set"
2. Confirm that you can place holds
3. Confirm that the rule does not exist in the DB table
4. Set the value to an empty string (manually)
5. Confirm that you cannot longer place holds
6. Go to the circulation rules page and confirm that the value of "Hold
policy" is "Not set"
7. Execute the update DB entry
8. Confirm that you can place holds
9. Confirm that the rule does not exist in the DB table

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c1e1c233ca69fe9f73efb1c939148f8c7afcf11e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
installer/data/mysql/atomicupdate/bug_25851.perl [new file with mode: 0644]
installer/data/mysql/updatedatabase.pl