Bug 24606: (QA follow-up) Fix QA script issues

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2022-10-31 09:05:57 -04:00 committed by Tomas Cohen Arazi
parent 0e1a3efb75
commit 9db0d5d9ab
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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';
}

View File

@ -273,7 +273,7 @@
<option value="0" selected="selected">Save as new template</option>
<optgroup label="Update existing template">
[% FOREACH t IN item_templates.owned %]
<option data-editor="1" data-shared="[% t.is_shared %]" value="[% t.id | html %]">[% t.name | html %][% IF t.is_shared %] (shared)[% END %]</option>
<option data-editor="1" data-shared="[% t.is_shared | html %]" value="[% t.id | html %]">[% t.name | html %][% IF t.is_shared %] (shared)[% END %]</option>
[% END %]
[% IF CAN_user_editcatalogue_manage_item_editor_templates && item_templates.shared.count %]
<optgroup label="Update shared template">