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

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |Signed Off

--- Comment #62 from Martin Renvoize (ashimema) 
<[email protected]> ---
Thanks Lucas, that was a good catch and I can reproduce it.

The cause: the last row of the table is for adding a rule. Saving it for a
patron category and item type that already has a rule (All / All in your steps)
replaces that rule, and the columns not shown on the current tab were submitted
empty, which means unlimited. With every column shown that overwrite was at
least visible, with tabs it is not.

The new follow-up patch fixes it:
* When no rule is being edited, the existing rule for the selected patron
category and item type is looked up and the hidden columns are repopulated from
it, as is already done for a rule being edited. A new combination of patron
category and item type is unchanged.
* While testing I found two more problems in the code repopulating hidden
columns: for Hard due date the date was never restored (the lookup found the
comparison select instead of the date input), and once that was fixed, setting
the date picker of a hidden column threw an error that stopped the submission
before all columns were shown again. All columns are now shown first, and then
the hidden ones repopulated.

I checked your steps, and also seeded values in the other column groups (hard
due date, no automatic renewal date, cap fine, fine, issue length, note) and
compared the database rows before and after saving from the Holds tab: only the
value being changed differs. Editing a rule with the Edit link, and adding a
new combination, behave as before.

All the patches are re-attached (rebased on current main, signed-off-by lines
kept). The earlier ones are unchanged. Setting back to Signed Off for another
look.

I am going to add Cypress tests for this page as a further follow-up.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to