Bug 32037: Check for existence of object before building link
authorNick Clemens <nick@bywatersolutions.com>
Fri, 28 Oct 2022 14:43:10 +0000 (14:43 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Nov 2022 22:18:54 +0000 (19:18 -0300)
commit03c8725b4e253faf87ca3aeda71ce8b59d4efdb0
tree1378049a3e1998204aecc8e4752894424260d0b2
parente75213b41c9c037f425a51cffa9e2597cc560bc4
Bug 32037: Check for existence of object before building link

This patch adds a check on the existence of the object and passes this to the template

I also drop a level of IF by moving to ELSIF

To test:
 1 - Enable ReturnLog amd IssueLog
 2 - Checkout an item to a patron
 3 - Return it
 4 - View 'Modification log' tab of the borrwer
 5 - Note item links, test them, they work
 6 - Delete the item
 7 - Reload and try links again, they do not work
 8 - Apply patch
 9 - Reload, no more links
10 - Checkout and return another item
11 - This one has links, and they work as before

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt
tools/viewlog.pl