]> git.koha-community.org Git - koha.git/commit
Bug 17792: Add opac_editable and opac_display methods
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Dec 2016 15:05:35 +0000 (12:05 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Mar 2017 18:44:03 +0000 (18:44 +0000)
commit7b5c8cbf079725381341cea5494717d58735ca9b
treed2fbd7d74011bd87948064e4509aedfddc97f341
parent9812c8b26e9886f0a7a79bbcefba1ac91ec7ed79
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@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Patron/Attribute.pm
t/db_dependent/Koha/Patron/Attributes.t [new file with mode: 0644]