]> git.koha-community.org Git - koha.git/commit
Bug 20443: Do not explode if attribute does not have a valid av
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Mar 2020 10:02:54 +0000 (11:02 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 23 Mar 2020 13:49:23 +0000 (13:49 +0000)
commit994ea386c389886ced62dc42bc10d0325557876c
tree31d21766af8ad6332bab0d4305802a80e2335059
parentfc430529c1ea686d3727ce786a619441f1763a0a
Bug 20443: Do not explode if attribute does not have a valid av

Template process failed: undef error -
Can't call method "lib" on an undefined value at /kohadevbox/koha/Koha/Patron/Attribute.pm line 109.
                                                    at /kohadevbox/koha/C4/Templates.pm line 122

We should not crash as it if the attribute is linked to an invalid
authorised value (for instance the AV has been deleted)

We must provide a check in the search_for_data_inconsistencies.pl script

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Patron/Attribute.pm