From 9db0d5d9abc5d84e96c58d32afec5d3f64ad7318 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Mon, 31 Oct 2022 09:05:57 -0400 Subject: [PATCH] Bug 24606: (QA follow-up) Fix QA script issues Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- Koha/Item/Templates.pm | 2 ++ Koha/Schema/Result/ItemEditorTemplate.pm | 17 +++++++++++++++++ .../prog/en/modules/cataloguing/additem.tt | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Koha/Item/Templates.pm b/Koha/Item/Templates.pm index 2ebe3c8e28..9c635f9bd1 100644 --- a/Koha/Item/Templates.pm +++ b/Koha/Item/Templates.pm @@ -28,6 +28,8 @@ use base qw(Koha::Objects); Koha::Item::Templates - Koha Item Template Object set class +=head2 METHODS + =head3 get_available Returns a hashref with keys 'owned' and 'shared' pointing to Koha::Item::Templats objects diff --git a/Koha/Schema/Result/ItemEditorTemplate.pm b/Koha/Schema/Result/ItemEditorTemplate.pm index 5ac366c172..0f34cebf1d 100644 --- a/Koha/Schema/Result/ItemEditorTemplate.pm +++ b/Koha/Schema/Result/ItemEditorTemplate.pm @@ -114,9 +114,26 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-28 16:49:35 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7JIe4z78F9oMOAnAZdqmtA +__PACKAGE__->add_columns( + '+is_shared' => { is_boolean => 1 }, +); + +=head2 koha_object_class + + Koha Object class + +=cut + sub koha_object_class { 'Koha::Item::Template'; } + +=head2 koha_objects_class + + Koha Objects class + +=cut + sub koha_objects_class { 'Koha::Item::Templates'; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 1d237eff99..73bb1f1b35 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -273,7 +273,7 @@ [% FOREACH t IN item_templates.owned %] - + [% END %] [% IF CAN_user_editcatalogue_manage_item_editor_templates && item_templates.shared.count %] -- 2.39.5