Bug 14553: Silencing warn triggered when clearing item rating on OPAC
commit0a325ab7ba740b69819d89bb1d6de18015289cae
authorAleisha <aleishaamohia@hotmail.com>
Tue, 21 Jul 2015 18:38:58 +0000 (21 18:38 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 20:55:24 +0000 (29 21:55 +0100)
treeb7800cf628954e4982f20fa9db1104df72d0a2b0
parenteeb9a6c1e577245387604987a5ed1cd5c1ab1411
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.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 94c5f8d5f06b588da0903c9607349adbf16344be)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
opac/opac-ratings-ajax.pl