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

Allow any plugin to identify a scale as being used

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.9.2, 3.1
    • 3.1
    • Competencies, Gradebook
    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              fred Frédéric Massart
              Adrian Greeve Adrian Greeve
              Dan Poltawski Dan Poltawski
              John Okely John Okely
              Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23/May/16