Bug 27420: Use object accessor for $attr_type->class()
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 13 Jan 2021 11:22:53 +0000 (11:22 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 20 Jan 2021 07:24:53 +0000 (08:24 +0100)
commit2cb36767ad9aa80f72b1e3b6aaecaf180f4bcbeb
tree7e0394b72f002c52ec17db5d6e023972d8cc553f
parent54a9ef09bfe7fe8eff67a173dc7b79a278aba88f
Bug 27420: Use object accessor for $attr_type->class()

We introduced a bug in the patron attribute forms with bug 5161.

Test plan
1/ Create two PA_CLASS authorized values
2/ Create two corresponding patron attribute types referencing the above
classes.
3/ Edit a patron, both attributes should appear within their own
fieldsets at the bottom of the member entry form.
4/ Set a value for the first of the two patron attributes and save
5/ Edit the patron again, note that the first attribute no longer
resides within it's own fieldset
6/ Apply the patch
7/ Edit the patron again, note that the first attribute now resides
inside it's own fieldset again
8/ Signoff

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 08396d4b2ffe7db4f7550631a751603f01387095)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
members/memberentry.pl