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

--- Comment #1 from Emmi Takkinen <[email protected]> ---
Created attachment 181364
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181364&action=edit
Bug 39233: Drop non-patron guarantor info when guarantee is updated as an adult
via update_patrons_category.pl

When child patrons category is updated via update_patrons_category.pl
patrons relationship with their guarantor is dropped from
borrower_relationships table. But non-patron guarantees info
is still  kept in borrowers table. This patch fixes this by
setting non-patron guarantor columns in borrower table as
undefined when patron is stored.

To test:
1. Find child patron with non-patron guarantor or create one.
2. Update patrons age so that their category is updated when you run following:
perl misc/cronjobs/update_patrons_category.pl --confirm --too_old --from K --to
PT
3. Check patrons info from patrons detail page.
=> Note that non-patron guarantors info was not dropped.
4. Apply this patch.
5. Run cronjob again.
=> Non-patron guarantors info should have now dropped.

Alsp prove t/db_dependent/Patrons.t.

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/

Reply via email to