• joubu's avatar
    Bug 18789: Send Koha::Patron object to the templates · 0ab22e1c
    joubu authored
    In order to simplify and make uniform the code, the controller scripts send
    a Koha::Patron object to the templates instead of all attributes of a patron.
    That will make the code much more easier to maintain and will be less
    The variable "patron" sent to the templates is supposed to represent the
    patron the librarian is editing the detail.
    In the members module and some scripts of the circulation module, the
    patron's detail are sent one by one to the template. That leads to
    frustration from developpers (making sure everything is passed from all
    scripts) and to regression (we got tone of bugs in the last year because
    of this way to do).
    With this patch set it will be easy access patron's detail, passing only
    1 variable from the controllers.
    Test plan:
    Play with the patron and circulation module and make sur the detail of
    the patron you are editing/seeing info are correctly displayed.
    Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
    Signed-off-by: Josef Moravec's avatarJosef Moravec <josef.moravec@gmail.com>
    Signed-off-by: joubu's avatarJonathan Druart <jonathan.druart@bugs.koha-community.org>
paycollect.tt 9.76 KB