From 43e01c43f0ea5d0f649ec4f7bc41fdfd13f3a912 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 30 Jan 2024 12:26:42 +0100 Subject: [PATCH] Bug 34478: Manual fix - opac-shelves (WIP) Share still needs attention, moved to "later" Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 12 +++++------- opac/opac-shelves.pl | 4 ++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 1e21d41712..2e0c4027a6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -247,7 +247,7 @@ |
[% INCLUDE 'csrf-token.inc' %] - + @@ -556,7 +556,7 @@ | [% INCLUDE 'csrf-token.inc' %] - + @@ -766,11 +766,10 @@ [% s.lastmodified | $KohaDates %] [% IF s.can_be_managed( loggedinusernumber ) %] - - [% INCLUDE 'csrf-token.inc' %] + - +
@@ -782,8 +781,7 @@ Share [% END %] [% IF s.is_shared AND s.can_be_managed( loggedinusernumber ) %] -
- [% INCLUDE 'csrf-token.inc' %] + diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index 74fa85be21..85bfb38c6b 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -96,7 +96,7 @@ my ( $shelf, $shelfnumber, @messages ); if ( $op eq 'add_form' ) { # Only pass default $shelf = { allow_change_from_owner => 1 }; -} elsif ( $op eq 'cud-edit_form' ) { +} elsif ( $op eq 'edit_form' ) { $shelfnumber = $query->param('shelfnumber'); $shelf = Koha::Virtualshelves->find($shelfnumber); @@ -161,7 +161,7 @@ if ( $op eq 'add_form' ) { if ($@) { push @messages, { type => 'error', code => 'error_on_update' }; - $op = 'cud-edit_form'; + $op = 'edit_form'; } else { push @messages, { type => 'message', code => 'success_on_update' }; } -- 2.39.5