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

Feedback causing slow retrival of scales in gradebook.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.16
    • Component/s: Feedback
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Getting this error:

      • line 263 of lib/grade/grade_scale.php: call to debugging()
      • line 121 of grade/edit/scale/index.php: call to grade_scale->is_used()

      Please notify the developer of module "feedback" that new function module_scale_used_anywhere() should be implemented.

      Put following function into /mod/feedback/lib.php and has fixed problem.

      /**

      • Checks if scale is being used by any instance of feedback
        *
      • This is used to find out if scale used anywhere
      • @param $scaleid int
      • @return boolean True if the scale is used by any forum
        */
        function feedback_scale_used_anywhere($scaleid) {

      if ($scaleid and record_exists('feedback', 'scale', -$scaleid))

      { return true; }

      else

      { return false; }

      }

      Regards,

      Troy

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/12