Bug 13757: Make K::P::Modifications->pending return K::P::Attribute
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 3 Feb 2017 18:22:37 +0000 (15:22 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Mar 2017 18:45:15 +0000 (18:45 +0000)
commitf9a5fd005efa2567be99f9eb2f44e5e79641f74c
treeb7544bf6c0d531bd036904f8f9a301086e6cc567
parente63e4bb35a67a2beed52139b2f149623526d5e23
Bug 13757: Make K::P::Modifications->pending return K::P::Attribute

This patch makes Koha::Patron::Modifications->pending return
Koha::Patron:Attribute objects. They are not stored on the DB but only
live in memory on runtime.

members-update.pl is the only place this is used, and this way we have
all we need for better rendering the UI.

Tests are added for the changed API.

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/Modifications.pm
t/db_dependent/Koha/Patron/Modifications.t