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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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
          andyjdavis Andrew Davis added a comment -

          Patch for review

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

          Committed.

          Show
          andyjdavis Andrew Davis added a comment - Committed.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Mar/10