Koha/opac
Jonathan Druart b679cac964 Bug 16179: Do not crash if "rate me" is clicked and not rate selected
If JS is disabled and a user clicks on the "Rate me" button, Koha will
crashes with:
DBIx::Class::ResultSet::create(): Column 'rating_value' cannot be null
at /usr/share/koha/lib/C4/Ratings.pm line 208

To avoid that, opac-ratings.pl will check if a rate has been selected.

Test plan:
Disable JS
On a record detail page, click on the "Rate me" button

TESTED PLAN:
1) go to /cgi-bin/koha/opac-ratings.pl?biblionumber=1
   -- kaboom as above.
2) apply patch
3) refresh
   -- either login screen (don't know why)
   -- or if already logged in, detail page.
4) koha qa test tool

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

I tested successfully by temporarily removing the modification made by
Bug 16210.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
2016-04-20 19:50:00 +00:00
..
errors
rss
sco Bug 15635: Koha::Patron::Images - Remove GetPatronImage 2016-03-04 12:54:15 +00:00
svc Bug 10988 - Fix some wording Fix some outdated wording in googleopenidconnect 2016-04-01 19:25:36 +00:00
ilsdi.pl Bug 14257 - Add show_attributes to GetPatronInfo 2016-03-31 20:31:06 +00:00
maintenance.pl
oai.pl
opac-account-pay-paypal-return.pl Bug 16129: Remove URL::Encode dependency 2016-04-01 18:48:18 +00:00
opac-account-pay.pl Bug 16129: Remove URL::Encode dependency 2016-04-01 18:48:18 +00:00
opac-account.pl
opac-addbybiblionumber.pl
opac-alert-subscribe.pl
opac-authorities-home.pl Bug 14076: Do not use CGI->param in list context - opac-authorities-home.pl 2016-03-25 21:28:06 +00:00
opac-authoritiesdetail.pl
opac-basket.pl
opac-blocked.pl
opac-browser.pl
opac-changelanguage.pl
opac-course-details.pl
opac-course-reserves.pl
opac-detail.pl
opac-discharge.pl
opac-downloadcart.pl
opac-downloadshelf.pl
opac-export.pl
opac-ics.pl
opac-idref.pl
opac-image.pl
opac-imageviewer.pl
opac-ISBDdetail.pl Bug 16169: Change prototype for C4::Biblio::TransformMarcToKoha 2016-04-07 00:04:21 +00:00
opac-main.pl
opac-MARCdetail.pl Bug 16169: Change prototype for C4::Biblio::TransformMarcToKoha 2016-04-07 00:04:21 +00:00
opac-memberentry.pl Bug 15635: Koha::Patron::Images - Remove GetPatronImage 2016-03-04 12:54:15 +00:00
opac-messaging.pl
opac-modrequest-suspend.pl
opac-modrequest.pl
opac-mymessages.pl
opac-news-rss.pl
opac-overdrive-search.pl
opac-passwd.pl
opac-password-recovery.pl Bug 15585 - Move C4::Passwordrecovery to the new namespace Koha::Patron::Password::Reset 2016-03-22 23:08:21 +00:00
opac-patron-image.pl Bug 15635: Koha::Patron::Images - Remove GetPatronImage 2016-03-04 12:54:15 +00:00
opac-privacy.pl
opac-ratings-ajax.pl
opac-ratings.pl Bug 16179: Do not crash if "rate me" is clicked and not rate selected 2016-04-20 19:50:00 +00:00
opac-readingrecord.pl
opac-registration-verify.pl
opac-renew.pl
opac-reserve.pl
opac-restrictedpage.pl
opac-retrieve-file.pl
opac-review.pl
opac-search-history.pl
opac-search.pl Bug 16157: Move the selected flag from GetAuthorisedValues to the templates 2016-04-07 00:16:09 +00:00
opac-sendbasket.pl Bug 14306: Show URL from MARC21 field 555$u under Title Notes/Descriptions 2016-03-07 17:58:32 +00:00
opac-sendshelf.pl Bug 14306: Remove call to GetMarcNotes from sendshelf 2016-03-07 17:58:33 +00:00
opac-serial-issues.pl
opac-shareshelf.pl
opac-shelves.pl Bug 16143: Make opac-shelves.pl generate OPAC itype images path 2016-03-24 15:34:38 +00:00
opac-showmarc.pl
opac-showreviews.pl
opac-suggestions.pl Bug 16198: Fix regression in OPAC suggestions 2016-04-06 22:05:49 +00:00
opac-tags.pl
opac-tags_subject.pl
opac-topissues.pl
opac-user.pl
tracklinks.pl
unapi