Bugzilla – Attachment 48233 Details for
Bug 15811
Redirect after adding a new list in OPAC broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15811: follow-up Bug 4912: Redirect to the appropriate view after editing/deleting a list
Bug-15811-follow-up-Bug-4912-Redirect-to-the-appro.patch (text/plain), 2.74 KB, created by
Kyle M Hall (khall)
on 2016-02-19 13:54:33 UTC
(
hide
)
Description:
Bug 15811: follow-up Bug 4912: Redirect to the appropriate view after editing/deleting a list
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-19 13:54:33 UTC
Size:
2.74 KB
patch
obsolete
>From caba8536bcfd61ea7b7cde3ea047a1969876b8e7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 12 Feb 2016 15:26:49 +0000 >Subject: [PATCH] Bug 15811: follow-up Bug 4912: Redirect to the appropriate > view after editing/deleting a list > >Test plan: >1/ At the opac, go on the the list home page (opac-shelves.pl) >2/ Click on 'new list', create a list and save >=> You should be redirect to the list >3/ Click on edit, save >=> You should be redirect to the list >4/ Delete the list >=> You should be redirect to the list >5/ Edit a list from the list view, save >=> You should be redirect to the list >6/ Click on a list link (op=view) >7/ Edit the list, save >=> You should be redirect to the 'show' view >8/ Delete list >=> You should be redirect to the list > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 1 + > opac/opac-shelves.pl | 4 ++-- > 2 files changed, 3 insertions(+), 2 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 d13c721..0149553 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -499,6 +499,7 @@ > <span class="sep">|</span> > <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> > <input type="hidden" name="op" value="edit_form" /> >+ <input type="hidden" name="referer" value="view" /> > <input type="hidden" name="category" value="category" /> > <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> > <input type="submit" class="editshelf" value="Edit list" /> >diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl >index ef418e0..6e4a5fd 100755 >--- a/opac/opac-shelves.pl >+++ b/opac/opac-shelves.pl >@@ -90,11 +90,11 @@ if ( $op eq 'add_form' ) { > push @messages, { type => 'error', code => 'error_on_insert' }; > } else { > push @messages, { type => 'message', code => 'success_on_insert' }; >- $op = $referer; >+ $op = 'view'; > } > } else { > push @messages, { type => 'error', code => 'unauthorized_on_insert' }; >- $op = $referer; >+ $op = 'list'; > } > } elsif ( $op eq 'edit' ) { > $shelfnumber = $query->param('shelfnumber'); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15811
:
47994
|
48003
| 48233