[Koha-bugs] [Bug 35341] Circulation rule dates are being overwritten

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 15 20:51:45 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35341

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #158980|0                           |1
        is obsolete|                            |

--- Comment #4 from David Nind <david at davidnind.com> ---
Created attachment 159005
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159005&action=edit
Bug 35341: Fix ciruclation rule dates being overwritten

This patch correctly sets the values of the date fields so that they are not
overwritten when only one is amended.

It also amends the collumn indexes being used in the click event as new columns
have been added without these being updated

Test plan:
1) Navigate to Administration > Circulation and fine rules
2) Add a new circulation rule for a category of your choice
3) For the "All" rule, add the date 31/12/2023 to both the Hard due date and No
automatic renewal after (hard limit) (NARAHL) columns and save
4) Now edit the rule that you created.
5) Change the two columns above to 01/12/2023 and click save
6) Edit the rule again and change the Hard due date to 15/12/2023. Click save
7) Note that the date for your rule in the NARAHL has changed to 31/12/2023
despite not being edited
8) Click edit again, and change the NARAHL date to 15/12/2023 and save.
9) This time the date in Hard due date will have changed to 31/12/2023
10) Apply patch
11) Edit the dates individually a few times and this time your rule should
update correctly

Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list