Bugzilla – Attachment 3859 Details for
Bug 6155
Lists not working in opac or staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
[PATCH] Bug 6155 _ Fixing bug with lists not showing.txt (text/plain), 2.61 KB, created by
Chris Cormack
on 2011-04-11 10:12:24 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-04-11 10:12:24 UTC
Size:
2.61 KB
patch
obsolete
>--- > C4/VirtualShelves/Page.pm | 17 ++++++++++------- > 1 files changed, 10 insertions(+), 7 deletions(-) > >diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm >index df7054e..cb55b9c 100644 >--- a/C4/VirtualShelves/Page.pm >+++ b/C4/VirtualShelves/Page.pm >@@ -57,6 +57,8 @@ sub shelfpage ($$$$$) { > $query or die "No query"; > $template or die "No template"; > $template->param( { loggedinuser => $loggedinuser } ); >+ my $edit; >+ my $shelves; > my @paramsloop; > my $totitems; > my $shelfoff = ( $query->param('shelfoff') ? $query->param('shelfoff') : 1 ); >@@ -163,6 +165,7 @@ sub shelfpage ($$$$$) { > my ( $shelfnumber2, $shelfname, $owner, $category, $sortfield ) = GetShelf($shelfnumber); > my $member = GetMember( 'borrowernumber' => $owner ); > my $ownername = defined($member) ? $member->{firstname} . " " . $member->{surname} : ''; >+ $edit = 1; > $template->param( > edit => 1, > shelfnumber => $shelfnumber2, >@@ -312,7 +315,7 @@ sub shelfpage ($$$$$) { > $stay = 0; > } > $showadd = 1; >- $stay and $template->param( shelves => 1 ); >+ $stay and $template->param( shelves => 1 ) and $shelves = 1; > last SWITCH; > } > } >@@ -359,7 +362,7 @@ sub shelfpage ($$$$$) { > $qhash{$_} = $query->param($_) if $query->param($_); > } > ( scalar keys %qhash ) and $url .= '?' . join '&', map { "$_=$qhash{$_}" } keys %qhash; >- if ( $query->param('viewshelf') ) { >+ if ( $shelfnumber ) { > $template->param( { pagination_bar => pagination_bar( $url, ( int( $totitems / $shelflimit ) ) + ( ( $totitems % $shelflimit ) > 0 ? 1 : 0 ), $itemoff, "itemoff" ) } ); > } else { > $template->param( >@@ -373,13 +376,13 @@ sub shelfpage ($$$$$) { > "BiblioDefaultView" . C4::Context->preference("BiblioDefaultView") => 1, > csv_profiles => GetCsvProfilesLoop() > ); >- if ( $template->param('viewshelf') >- or $template->param('shelves') >- or $template->param('edit') ) { >+ if ( $shelfnumber >+ or $shelves >+ or $edit ) { > $template->param( vseflag => 1 ); > } >- if ($template->param('shelves') or # note: this part looks duplicative, but is intentional >- $template->param('edit') >+ if ($shelves or # note: this part looks duplicative, but is intentional >+ $edit > ) { > $template->param( seflag => 1 ); > } >-- >1.5.6.5 >
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 6155
:
3859
|
3861