]> git.koha-community.org Git - koha.git/commit
Bug 21432: (bug 20899 follow-up) Fix patron's name display for deleted patrons
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Oct 2018 21:05:44 +0000 (18:05 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 8 Oct 2018 08:41:45 +0000 (09:41 +0100)
commit2b37db0d7dfd6375621edcdbc83e740d3f2f8407
treeb9561cdb9ca76e108b765bdb8a0bb794f392ad0d
parent78ffca5f32d82b72edb07a6d058a623c41b712dd
Bug 21432: (bug 20899 follow-up) Fix patron's name display for deleted patrons

Template process failed: undef error - DBIC result _type  isn't of the
_type Borrower at
/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt
line 54.

Koha::Old::Checkout->patron should return undef if the patron record has
been removed.

Test plan:
- Check 2 items out on the same bibliographic record
- Check them in
- Delete the patron's record of one of the issuer (Is this word really
exist?)
- View the checkout history for this bib record (Home › Catalog ›
Checkout history)
=> Without this patch you get the error
=> With this patch applied one of the "Patron" cells will be empty

Signed-off-by: Claudio <costalc@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7fbd50e3aa07e46f0558d4f52231896937c998bc)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Old/Checkout.pm
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt
t/db_dependent/Koha/Checkouts.t