Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27625

Regression: cannot delete ratings

XMLWordPrintable

    • Any
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • MDL-27625_master
    • Easy
    • Hide

      Fix is 100% the same for 20_STABLE and master so should be enough to test under 20_STABLE:

      • Create two forums (one with numerical scale and another with custom scale) with some posts.
      • Create two datas (one with numerical scale and another with custom scale) with some records.
      • Create two glossaries (one with numerical scale and another with custom scale) with some entries.
      • Rate 1 post, one record and one entry (at least)
      • TEST: Try to unrate them with JS enabled. No error should happen.
      • TEST: Refresh the page. The unrated values continue unrated.
      • TEST: Try to unrate them with JS disable. No error should happen.
      • TEST: Refresh the page. The unrated values continue unrated.
      Show
      Fix is 100% the same for 20_STABLE and master so should be enough to test under 20_STABLE: Create two forums (one with numerical scale and another with custom scale) with some posts. Create two datas (one with numerical scale and another with custom scale) with some records. Create two glossaries (one with numerical scale and another with custom scale) with some entries. Rate 1 post, one record and one entry (at least) TEST: Try to unrate them with JS enabled. No error should happen. TEST: Refresh the page. The unrated values continue unrated. TEST: Try to unrate them with JS disable. No error should happen. TEST: Refresh the page. The unrated values continue unrated.

      You don't seem to be able to delete a rating. If you select "Rate..." it should delete your rating. I'm getting an error back "Invalid numeric value"

      Its due to this code in the 3 per module rating validation functions.
      if ($params['rating'] < 0)

      { throw new rating_exception('invalidnum'); }

            stronk7 Eloy Lafuente (stronk7)
            andyjdavis Andrew Davis
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Helen Foster Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.