From 5c161c145b7fa2dc2ccf62124cffe1da26b6339e Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 24 Aug 2020 09:22:24 -0400 Subject: [PATCH] Bug 26281: Add cancellation reason to holds history Bug 25534 adds the ability to store the cancellation reason when a hold is cancelled and communicate it to the user. It would be great if the cancellation reason could also be shown on the holds history. Test Plan: 1) Apply this patch 2) Cancel a hold with a reason 4) Browse to holds history for the holds' patron 5) Note the reason shows in the status column if one was provided Working ok. Signed-off-by: Amit Gupta Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/members/holdshistory.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt index 0e8ab42403..06c0cca049 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt @@ -97,6 +97,9 @@ Fulfilled [% ELSIF hold.cancellationdate %] Cancelled + [% IF hold.cancellation_reason %] + ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) %]) + [% END %] [% ELSIF hold.found == 'W' %] Waiting [% ELSIF hold.found == 'T' %] -- 2.39.5