[Koha-bugs] [Bug 17792] Introduce Koha::Patron::Attribute(s)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 31 18:59:35 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17792
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #58421|0 |1
is obsolete| |
--- Comment #17 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 59693
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59693&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
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list