If a patron with a child patron category is not linked to a guarantor (or a valid one), it was not possible to edit the child patron's record. When attempt, no changes were saved and the following error is recorded in the Apache error log: memberentry.pl: DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (`gmc_koha/borrowers`, CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)) ... This patch fixes this bug, allowing a child patron record to be edited even if it has no guarantor. Signed-off-by: Galen Charlton <galen.charlton@liblime.com> |
||
|---|---|---|
| .. | ||
| boraccount.pl | ||
| borrowers_details.pl | ||
| deletemem.pl | ||
| guarantor_search.pl | ||
| mancredit.pl | ||
| maninvoice.pl | ||
| member-flags.pl | ||
| member-password.pl | ||
| member-picupload.pl | ||
| member.pl | ||
| memberentry.pl | ||
| members-home.pl | ||
| messaging.pl | ||
| moremember.pl | ||
| patronimage.pl | ||
| pay.pl | ||
| readingrec.pl | ||
| setdebar.pl | ||
| setstatus.pl | ||
| update-child.pl | ||