From 192e5dc43fad1c44953ebdaa293399ddb5e60da6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 12 Mar 2012 09:56:42 -0400 Subject: [PATCH] Bug 7515 - Followup - Only set itemnotes to authorised value if said value exists. --- C4/Items.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 800c678..747e0d1 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1271,7 +1271,8 @@ sub GetItemsInfo { # get itemnotes authorised value if applicable ($authorised_valuecode) = C4::Koha::GetAuthValCode('items.itemnotes', $data->{frameworkcode}); - $data->{itemnotes} = C4::Koha::GetKohaAuthorisedValueLib($authorised_valuecode, $data->{itemnotes}, $opac); + my $itemnotes_authvalue = C4::Koha::GetKohaAuthorisedValueLib($authorised_valuecode, $data->{itemnotes}, $opac); + $data->{itemnotes} = $itemnotes if ( $itemnotes_authvalue ); # get restricted status and description if applicable my $restrictedstatus = $dbh->prepare( -- 1.7.2.5