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

Allow any plugin to identify a scale as being used

XMLWordPrintable

    • MOODLE_29_STABLE, MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • wip-MDL-51867-master2
    • Hide
      1. Go to the site scales (Admin > Grades > Scales)
      2. Identify some scales that are not reported as being used
      3. Edit the file admin/tool/customlang/lib.php and add the following snippet:

        function tool_customlang_scale_used_anywhere($scaleid) {
            return true;
        }
        

      4. Purge the caches and refresh the scales page
      5. Confirm that all scales are now reported as used

      Regression test:

      1. Add a scale
      2. Confirm its reported as unused
      3. Make use of the scale in an assignment instance
      4. Ensure that the scale is reported as used and can't be modified
      Show
      Go to the site scales (Admin > Grades > Scales) Identify some scales that are not reported as being used Edit the file admin/tool/customlang/lib.php and add the following snippet: function tool_customlang_scale_used_anywhere($scaleid) { return true; } Purge the caches and refresh the scales page Confirm that all scales are now reported as used Regression test: Add a scale Confirm its reported as unused Make use of the scale in an assignment instance Ensure that the scale is reported as used and can't be modified
    • CBE Sprint 7

      In learning plans we attach the scale to frameworks, we must be able to prevent those scales to be deleted or everything will go nuts.

            marina Marina Glancy
            fred Frédéric Massart
            Adrian Greeve Adrian Greeve
            Dan Poltawski Dan Poltawski
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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