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

question_attempt::$timemodified should not be public

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.3
    • None
    • Questions
    • None
    • MOODLE_36_STABLE

    Description

      question_attempt is a completely encapsulated class (all fields protected, with getters where needed), except for $timemodified, which is public. (Before MDL-65245 it was undeclared, meaning that it was effectively public, and it seems that the privacy code is relying on that.)

      This field should be changed to be protected like everything else.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              timhunt Tim Hunt
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: