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

Allow any plugin to identify a scale as being used

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.2, 3.1
    • Fix Version/s: 3.1
    • Component/s: Competencies, Gradebook
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      wip-MDL-51867-master2
    • Sprint:
      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

              Assignee:
              marina Marina Glancy
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16