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

--- Comment #2 from Peter Vashchuk <[email protected]> ---
Created attachment 146584
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146584&action=edit
Bug 32949: Do not fill form with wrong shadow value to avoid data loss in
smart-rules.tt

When you edit the rule without initializing flatpickr plugin, if you press the
save button it will overwrite the date with an empty value, making you lose the
dates. This happens because flatpickr plugin's shadow value is not loaded if
it's not initialized with a click on that date field. This patch fixes it.

1st Code commit text: To reproduce:
1. Head over to the smart rules admin page and create/use existing rule for
certain item type/category. 
2. Set "hard due date" and "No automatic renewal after (hard limit)" of that
rule to a certain date and save.
3. Edit that same rule again, but this time just save it without any changes.
The data for hard due date and hard limit will get lost and will be set as
"None defined". 
4. Apply the patch.
5. Repeat steps 2 and 3. Ensure that the data loss is not happening anymore.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to