--- Comment #228 from Tomás Cohen Arazi <> ---
Created attachment 92322
Bug 14570: Add error handling to Koha::Patron::Relationship->store

This patch adds checks on the values for the 'relationship'. This is
done to avoid future problems when migrating relationships from the
plain text syspref into (why not) a proper table. And to preserve

There's also catching on possible broken constraints and throwing a new

Tests are added for both the new exceptions and the changes to

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/Koha/Exceptions.t \
          t/db_dependent/Koha/Patron.t \
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <>

Signed-off-by: Kyle M Hall <>
Signed-off-by: Agustin Moyano <>

Signed-off-by: Liz Rea <>
Signed-off-by: Tomas Cohen Arazi <>

You are receiving this mail because:
You are watching all bug changes.
Koha-bugs mailing list
website :
git :
bugs :

Reply via email to