Bugzilla – Attachment 80162 Details for
Bug 21500
Warnings in rotating collections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21500: Remove warnings in rotating collections
Bug-21500-Remove-warnings-in-rotating-collections.patch (text/plain), 1.56 KB, created by
Katrin Fischer
on 2018-10-06 19:15:51 UTC
(
hide
)
Description:
Bug 21500: Remove warnings in rotating collections
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-10-06 19:15:51 UTC
Size:
1.56 KB
patch
obsolete
>From 9a3328fa004fb07c18dd297ffbbfb38aae1ee5e6 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 4 Oct 2018 14:08:32 -0300 >Subject: [PATCH] Bug 21500: Remove warnings in rotating collections > >To test: >- Go to Tools > Rotating collections >=> FAIL: Some warinings on the logs >- Apply this patch >- Reload page >=> SUCCESS: No warinings >- Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > rotating_collections/addItems.pl | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/rotating_collections/addItems.pl b/rotating_collections/addItems.pl >index 7d4fd64..4c79328 100755 >--- a/rotating_collections/addItems.pl >+++ b/rotating_collections/addItems.pl >@@ -41,7 +41,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > } > ); > >-if ( $query->param('action') eq 'addItem' ) { >+if ( defined $query->param('action') and >+ $query->param('action') eq 'addItem' ) { > ## Add the given item to the collection > my $colId = $query->param('colId'); > my $barcode = $query->param('barcode'); >@@ -91,7 +92,7 @@ if ( $query->param('action') eq 'addItem' ) { > } > > my ( $colId, $colTitle, $colDescription, $colBranchcode ) = >- GetCollection( $query->param('colId') ); >+ GetCollection( scalar $query->param('colId') ); > my $collectionItems = GetItemsInCollection($colId); > if ($collectionItems) { > $template->param( collectionItemsLoop => $collectionItems ); >-- >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 21500
:
80082
|
80125
| 80162