From 290a9b17a888302a26e95dce43d260b386b0758e Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 25 Apr 2011 16:15:51 -0400 Subject: [PATCH] one more minor thing when showing fines on reservations if there's not a record associated with the xact (like in the case of a reservation against a non-cataloged resource), don't try to show a link --- Open-ILS/web/templates/default/opac/myopac/main.tt2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/templates/default/opac/myopac/main.tt2 b/Open-ILS/web/templates/default/opac/myopac/main.tt2 index a99cc2d1cb..03347fb73c 100644 --- a/Open-ILS/web/templates/default/opac/myopac/main.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/main.tt2 @@ -40,7 +40,12 @@ END %] - [% attrs.title %] + [% recid = f.xact.circulation.target_copy.call_number.record.id || f.xact.reservation.target_resource_type.record.id; + IF recid; %] + [% attrs.title %] + [% ELSE %] + [% attrs.title %] + [% END %] [% attrs.author %] -- 2.43.2