https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40116
--- Comment #8 from Emmi Takkinen <[email protected]> --- Created attachment 183746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183746&action=edit Bug 40116: Change classes for existing guarantors in patron form We are currently using classes "new_guarantor_id" and "new_guarantor_relationship" with existing guarantors in patron add/modify form. These classes should mainly be used when new guarantor is added and to ensure their data is not lost when error occurs. Now with previous patch applied using them leads to situation where existing guarantors information is displayed twice (or more times) if error occurs. This patch changes these classes as "guarantor_id" and "guarantor_relationship". To test: 1. Find patron who has a guarantor. 2. Modify their age to be greater than the upperage or under the required age of the patron category. 3. Attempt to save patron. => Notice that guarantor is now displayed twice in "Patron guarantor" section. 4. Apply this patch. 5. Attempt to save the patron again. => Notice that guarantor is no longer duplicated in "Patron guarantor" section. 6. Try to readd same patron as guarantor. => Pop-up "Patron is already a guarantor for this patron" should be displayed. 7. Try to add new guarantor for patron. => New guarantor should be added. 8. Attempt to save the patron. => Neither existing patron or new patron is duplicated. 9. Fix patrons age and attempt to save. => Patron is saved and both guarantors are displayed in their details. Sponsored-by: Koha-Suomi Oy -- 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/
