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

--- Comment #2 from Tomás Cohen Arazi <tomasco...@gmail.com> ---
Created attachment 58527
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58527&action=edit
Bug 17828: Overload Koha::Patron::Attribute->store to check for unique_id

This patch introduces a Koha::Patron::Attribute->store method that does
the required check for the corresponding Koha::Patron::Attribute::Type
and raises an exception if trying to store more than one unique
attribute.

This patch introduces an exception definition for that purpose.

To test:
- Apply the unit tests patches
- Run:
  $ prove t/db_dependent/Koha/Patron/Attributes.t
=> FAIL: Tests fail
- Apply this patch
- Run:
  $ prove t/db_dependent/Koha/Patron/Attributes.t
=> SUCCESS: Tests pass!
- Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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