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

Baptiste Wojtkowski (bwoj) <[email protected]> changed:

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

--- Comment #11 from Baptiste Wojtkowski (bwoj) 
<[email protected]> ---
Created attachment 179578
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179578&action=edit
Bug 39331: If patron category cant be guarantee do not continue with
add_guarantors

To test:
1 - Remove age limits from a Child and Adult category in Administration->Patron
categories. Ensure Child category can be guarantor and Adult cannot
2 - The above step is to avoid any age checks and form resubmission which
removes the guarantor fields
3 - Find/create a child patron
4 - Add a guarantee from the Adult category to the child
5 - Check the DB:
   SELECT * FROM borrower_relationships WHERE guarantee_id={borrowernumber of
child};
6 - Note the id colum
7 - Edit the child patron to Adult category
8 - Repeat 5
9 - Note the relationship still exists and the id is incremented
10 - Oof!
11 - APPLY PATCH, restart_all
12 - Try again steps 3 - 8
13 - The relationship should not be re-added
14 - Try with more than 1 guarantor on the record, confirming all are deleted
15 - Try adding some guarantor to patron types that should be able to, they
relationship should work.
16 - Try changing some patrons to categories that do allow guarantors, making
sure the relationship does stay.

Signed-off-by: David Nind <[email protected]>
Signed-off-by: Baptiste Wojtkowski <[email protected]>

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