Bugzilla – Attachment 44759 Details for
Bug 14553
Warns when clearing a rating on an item on OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14553: Silencing warn triggered when clearing item rating on OPAC
Bug-14553-Silencing-warn-triggered-when-clearing-i.patch (text/plain), 1.34 KB, created by
Jonathan Druart
on 2015-11-11 13:29:22 UTC
(
hide
)
Description:
Bug 14553: Silencing warn triggered when clearing item rating on OPAC
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-11-11 13:29:22 UTC
Size:
1.34 KB
patch
obsolete
>From 75d85bf16f224c3edabdfecceb3a12b0fd819dbd Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Tue, 21 Jul 2015 18:38:58 +0000 >Subject: [PATCH] Bug 14553: Silencing warn triggered when clearing item rating > on OPAC > >To test: > >1) Go to any item and clear the star rating (don't have to set a rating first) >2) Notice the warn >3) Apply patch and reload page >4) Clear star rating >5) Notice no warn >6) Click a star to add a rating >7) Make sure your rating, the average rating and amount of votes are all > correct >8) Could be beneficial to log in as another user and try to add a rating on the > same item from their account. Check the average rating is > cacalculated and amount of votes increases >9) Confirm still no warns > >Signed-off-by: Frederic Demians <f.demians@tamil.fr> > Can see the warning in logs, and its disappearance with this patch. >--- > opac/opac-ratings-ajax.pl | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-ratings-ajax.pl b/opac/opac-ratings-ajax.pl >index 1b91caf..2d6c706 100755 >--- a/opac/opac-ratings-ajax.pl >+++ b/opac/opac-ratings-ajax.pl >@@ -67,10 +67,9 @@ else { > } > > my $rating; >+$rating_value //= ''; > >-undef $rating_value if $rating_value eq ''; >- >-if ( !$rating_value ) { >+if ( $rating_value eq '' ) { > #### delete > $rating = DelRating( $biblionumber, $loggedinuser ); > } >-- >2.1.0
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 14553
:
41114
|
44748
| 44759