From 36ae99bd176824e0b3deea253338d3d3d1ab52ce Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 17 Jun 2022 09:28:27 +0000 Subject: [PATCH] Bug 28854: (QA follow-up) Fix QA tool complaints * Typo in code comment * Permissions on atomicupdate * Missing TT filter in template --- Koha/Item.pm | 2 +- installer/data/mysql/atomicupdate/bug_28854.pl | 0 koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 installer/data/mysql/atomicupdate/bug_28854.pl diff --git a/Koha/Item.pm b/Koha/Item.pm index 6b024a6624..4f7e7526a8 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -1571,7 +1571,7 @@ sub add_to_bundle { } catch { - # FIXME: See if we can move the below copy/paste from Koha::Object::store into it's own class and catch at a lower level in the Schema instantiation.. take inspiration fro DBIx::Error + # FIXME: See if we can move the below copy/paste from Koha::Object::store into it's own class and catch at a lower level in the Schema instantiation, take inspiration from DBIx::Error if ( ref($_) eq 'DBIx::Class::Exception' ) { warn $_->{msg}; if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) { diff --git a/installer/data/mysql/atomicupdate/bug_28854.pl b/installer/data/mysql/atomicupdate/bug_28854.pl old mode 100644 new mode 100755 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 645e4453d7..3e498304c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1438,7 +1438,7 @@ Note that permanent location is a code, and location may be an authval. [% IF bundlesEnabled %] var bundle_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','bundle_tables','json') | $raw %]; - var bundle_lost_value = [% Koha.Preference('BundleLostValue') %]; + var bundle_lost_value = [% Koha.Preference('BundleLostValue') | html %]; [% END %] $(document).ready(function() { -- 2.30.2