From dba5f93c9c1ae1321f8e3af3661ea1240c4cbece Mon Sep 17 00:00:00 2001 From: Andrew Nugged Date: Sat, 16 Oct 2021 01:16:16 +0300 Subject: [PATCH] Bug 20447: (QA follow-up) Remove warning when frameworkcode is undef --- cataloguing/addholding.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/addholding.pl b/cataloguing/addholding.pl index bd1f3114fd..2eb509c95a 100755 --- a/cataloguing/addholding.pl +++ b/cataloguing/addholding.pl @@ -587,7 +587,7 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user( my $record = $holding_id ? Koha::Holdings->find($holding_id) : Koha::Holding->new(); $frameworkcode = $record->frameworkcode if ($record); -$frameworkcode = 'HLD' if ($frameworkcode eq ''); +$frameworkcode = 'HLD' if not $frameworkcode or $frameworkcode eq ''; # TODO: support in advanced editor? #if ( $op ne "delete" && C4::Context->preference('EnableAdvancedCatalogingEditor') && C4::Auth::haspermission(C4::Context->userenv->{id},{'editcatalogue'=>'advanced_editor'}) && $input->cookie( 'catalogue_editor_' . $loggedinuser ) eq 'advanced' ) { -- 2.33.0