Koha/tools
Nick Clemens 03c8725b4e
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>
2022-11-04 19:18:54 -03:00
..
csv-profiles
access_files.pl
additional-contents.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
ajax-inventory.pl
automatic_item_modification_by_age.pl Bug 22827: Add age dependency on other fields than dateaccessioned 2022-04-08 15:49:16 +02:00
background-job-progress.pl
batch_delete_records.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
batch_extend_due_dates.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
batch_record_modification.pl Bug 29771: Scalar context for split 2022-03-08 23:03:34 -10:00
batch_records_ajax.pl Bug 22785: Allow option to choose which record match is applied during import 2022-05-03 11:19:50 -10:00
batchMod.pl Bug 31154: (QA follow-up) Fix UI form builder 2022-09-16 10:26:26 -03:00
cleanborrowers.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl
export.pl Bug 6936: Allow multiple itemtypes for bib record export 2022-08-22 13:34:38 -03:00
holidays.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
import_borrowers.pl Bug 31590: Remove Text::CSV::Unicode 2022-09-21 16:07:21 -03:00
inventory.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
letter.pl Bug 31373: DRY - Use try/catch around _process_tt 2022-09-16 11:03:04 -03:00
manage-marc-import.pl Bug 27421: Commit and revert 2022-09-19 15:14:56 -03:00
marc_modification_templates.pl
modborrowers.pl Bug 29926: Add ability for superlibrarians to batch edit password expiration dates 2022-05-06 10:33:09 -10:00
newHolidays.pl
overduerules.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
page.pl Bug 31385: (follow-up) Same change at intranet side 2022-08-19 11:43:56 -03:00
picture-upload.pl Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
problem-reports.pl
quotes-upload.pl
quotes.pl
scheduler.pl Bug 30718: Fix scheduler 2022-08-19 08:26:38 -03:00
showdiffmarc.pl Bug 31526: Follow-up for bug 29697 2022-09-16 10:25:48 -03:00
stage-marc-import.pl Bug 27421: Use Background job for staging MARC records for import 2022-09-19 15:14:55 -03:00
stockrotation.pl Bug 29771: Remove trivial cases 2022-03-08 23:03:34 -10:00
tools-home.pl
upload-cover-image.pl Bug 30972: Don't replace biblio's local cover images when uploading an image's image 2022-06-20 10:39:34 -03:00
upload-file.pl
upload.pl
viewlog.pl Bug 32037: Check for existence of object before building link 2022-11-04 19:18:54 -03:00