Bug 20443: Fix patron modification approval
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Mar 2020 10:43:14 +0000 (11:43 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 23 Mar 2020 13:49:23 +0000 (13:49 +0000)
commitea5e9f25e9cbeae9e12dd05e17175ae3203a92b2
tree05b1c045540681d01358f776555225372e572993
parent994ea386c389886ced62dc42bc10d0325557876c
Bug 20443: Fix patron modification approval

There was a mismatch between "value" and "attribute". Before this
patchset, "value" was sometimes used, but then it comes "attribute" to
match the DB column's name.
We must keep both here, when an upgrade is done we could have "value"
that is still in the borrower_modifications.extended_attributes JSON

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