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

Unable to delete rating in glossary module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0.2
    • 2.0.1
    • Glossary, Ratings
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Moderate

      While testing MDL-26272, trying to delete one rating from the drop-down (ajax alternative, select "Rate...") seems to wok ok for forum and database ratings, but in glossary I get:

      Unable to parse JSON string <br />
      <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
      <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined variable: rating in /Users/stronk7/git_moodle/integration/rating/rate_ajax.php on line <i>144</i></th></tr>
      <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
      <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
      <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0001</td><td bgcolor='#eeeeec' align='right'>94720</td><td bgcolor='#eeeeec'>

      {main}( )</td><td title='/Users/stronk7/git_moodle/integration/rating/rate_ajax.php' bgcolor='#eeeeec'>../rate_ajax.php<b>:</b>0</td></tr>
      </table></font>
      <br />
      <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
      <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Trying to get property of non-object in /Users/stronk7/git_moodle/integration/rating/rate_ajax.php on line <i>144</i></th></tr>
      <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
      <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
      <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0001</td><td bgcolor='#eeeeec' align='right'>94720</td><td bgcolor='#eeeeec'>{main}

      ( )</td><td title='/Users/stronk7/git_moodle/integration/rating/rate_ajax.php' bgcolor='#eeeeec'>../rate_ajax.php<b>:</b>0</td></tr>
      </table></font>

      {"success":true,"aggregate":5,"count":"1","itemid":68}

            andyjdavis Andrew Davis
            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.