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

--- Comment #94 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 211381
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211381&action=edit
Bug 41439: (follow-up) Keep values entered on other tabs when saving a rule

Values entered on a tab were lost when switching to another tab before saving,
as the hidden columns were repopulated from the saved rule on submit.
Also, after clicking Edit, the columns of the tabs that were not shown were not
filled with the values of the rule, so they were saved as empty (unlimited).

* Clicking Edit now fills every column, then goes back to the tab shown.
* Saving a rule being edited no longer repopulates any column.
* When entering the patron category and item type of an existing rule again,
  only the hidden columns that were not changed by the user are repopulated.

To test:
1. Apply the patches
2. Go to Administration > Circulation and fine rules
3. Click Edit on the All/All rule
4. On the Checkouts tab set "Current checkouts allowed" to 11
5. Go to the Renewals tab and set "Renewals allowed (count)" to 4
6. Save
=> Both values are saved, and the other columns are unchanged
7. Click Edit, then go to another tab
=> The values of the rule are shown there
8. Run
   $ ktd --shell
   k$ yarn cypress run --spec
t/cypress/integration/Admin/CirculationRules_spec.ts
=> SUCCESS: Tests pass!
9. Sign off :-D

Signed-off-by: Andrew Fuerste Henry <[email protected]>

-- 
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