[Koha-bugs] [Bug 16179] New: Clicking Rate me button in OPAC without selecting rating produces error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 31 18:16:04 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16179

            Bug ID: 16179
           Summary: Clicking Rate me button in OPAC without selecting
                    rating produces error
 Change sponsored?: ---
           Product: Koha
           Version: 3.20
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: jyorio at esilibrary.com
        QA Contact: testopia at bugs.koha-community.org

When a patron clicks on Rate me button on the detail screen without selecting a
rating option, the following error is produced:

Software error:

DBIx::Class::ResultSet::create(): Column 'rating_value' cannot be null at
/usr/share/koha/lib/C4/Ratings.pm line 208

For help, please send mail to the webmaster ([no address given]), giving this
error message and the time and date of the error

Related to this, patrons who are not logged in, can still click the Rate me
button, but are unable to make a rating selection and will get the error
message as a result.

Ideally, in either case, they would receive a more user-friendly message rather
than the error above.

Steps to reproduce:
0) Do not log in
1) Search the catalog for a title
2) View one of the search results
3) Click on the Rate me button

OR

0) Log in
1) Search the catalog for a title
2) View one of the search results
3) Click on the Rate me button

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list