Bug 27857: Get the right column
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 19 Mar 2021 10:56:39 +0000 (07:56 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Apr 2021 13:43:30 +0000 (15:43 +0200)
commit0d59e57508201778ff4481dcc75be19a0e9a3cd0
treef980d1d86f661452969e7d390806414723097f07
parent881b610db65d077b46194c1f3056f5e1826170e0
Bug 27857: Get the right column

This patch makes the search for mandatory attribute types actually use
'code' instead of 'class' for comparisson.

Tests are added to cover this behavior.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
https://bugs.koha-community.org/show_bug.cgi?id=27587

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Patron.pm
t/db_dependent/Koha/Patron.t