Moodle
  1. Moodle
  2. MDL-21270

Use constants not integers in grade/report/user/lib.php

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.8
    • Component/s: Gradebook
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In grade/report/user/lib.php we currently use the integers to represent the various behaviours around hidden items. Instead we should define constants to make the code more readable.

        Gliffy Diagrams

          Activity

          Hide
          Andrew Davis added a comment -

          Patch for review

          Show
          Andrew Davis added a comment - Patch for review
          Hide
          Andrew Davis added a comment -

          Committed.

          Show
          Andrew Davis added a comment - Committed.

            People

            • Assignee:
              Andrew Davis
              Reporter:
              Andrew Davis
              Tester:
              Nobody
              Participants:
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: