Bugzilla – Attachment 20348 Details for
Bug 8324
Redisplay OPAC list with correct sort after edit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8324 - Redisplay OPAC list with correct sort after edit
Bug-8324---Redisplay-OPAC-list-with-correct-sort-a.patch (text/plain), 1.61 KB, created by
Galen Charlton
on 2013-08-14 16:28:03 UTC
(
hide
)
Description:
Bug 8324 - Redisplay OPAC list with correct sort after edit
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-08-14 16:28:03 UTC
Size:
1.61 KB
patch
obsolete
>From 6522cbf7218035d44e6d9a1a9e9deee1e6f49760 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 12 Aug 2013 15:05:55 -0400 >Subject: [PATCH] Bug 8324 - Redisplay OPAC list with correct sort after edit > >If you are viewing the contents of a list, edit it, change the default >sort, and save your list will be redisplayed sorted by title no matter >what default sort you chose. Lists do not automatically sort by their >default sort, they must be opened with the sort parameter. > >This patch adds the list's sort parameter to the redirect after editing. > >To test, open an existing list in the OPAC which contains items. Click >the "Edit list" link at the top of the list contents view. Change the >default sort to something new. Click "Save." If the list is redisplayed >using the new default sort the patch worked. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > C4/VirtualShelves/Page.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm >index 7756d92..90f0f3f 100644 >--- a/C4/VirtualShelves/Page.pm >+++ b/C4/VirtualShelves/Page.pm >@@ -200,7 +200,7 @@ sub shelfpage { > } > > if($displaymode eq "viewshelf"){ >- print $query->redirect( $pages{$type}->{redirect} . "?viewshelf=$shelfnumber" ); >+ print $query->redirect( $pages{$type}->{redirect} . "?viewshelf=$shelfnumber" . "&sortfield=" . $shelf->{sortfield}); > } elsif($displaymode eq "publicshelves"){ > print $query->redirect( $pages{$type}->{redirect} ); > } else { >-- >1.7.10.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 8324
:
20280
| 20348