[Koha-bugs] [Bug 17792] Introduce Koha::Patron::Attribute(s)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 23 16:09:00 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17792
--- Comment #5 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 58421
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58421&action=edit
Bug 17792: Add opac_editable and opac_display methods
This patch adds two methods to the Koha::Patron::Attribute:
- opac_display
- opac_editable
Both method just check the corresponding Koha::Patron::Attribute::Type
and return the values for those attributes. This is useful to avoid
checking that manually on the controller scripts.
To test:
- 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.
More information about the Koha-bugs
mailing list