]> git.koha-community.org Git - koha.git/commit
Bug 35460: Fix add and edit of hold rules in circulation rules table
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Fri, 1 Dec 2023 13:08:48 +0000 (15:08 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 12 Dec 2023 07:44:27 +0000 (21:44 -1000)
commitff292199a5f43584adc4726c10df979db4ef8a03
treeb0bb31a97fa4b5cfd3a2595b91dd8362b3193513
parent0a8908bddb1a75f539e596893a257de0aac24fa6
Bug 35460: Fix add and edit of hold rules in circulation rules table

Adding or editing following columns in circulation
rules table didn't work:
- Holds allowed (total)
- Holds allowed (daily)
- Holds per record (count)

At some point those columns were dropped from list of
saved columns in smart-rules.pl.

To test:
1. Create new rule or edit existing one.
2. Add or change values in following columns:
- Holds allowed (total)
- Holds allowed (daily)
- Holds per record (count
3. Save rule.
=> Note that columns have value "Unlimited" on them.
If you check database, columns haven't been saved.
4. Apply this patch.
5. Repeat steps 1. to 3.
=> Columns should now have values in them and they
are saved to database.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ca27b5adb03eae30e425f096ef635a8fe4ce3b3f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/smart-rules.pl