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

3.3 Shortname column replaced with 3.7 Name column producing Notice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Assignment
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Having upgraded from Moodle 3.3.latest to Moodle 3.7, the following Notice appears multiple times when developer debugging is turned on and one navigates to an assignment. 

      Notice: Undefined property: stdClass::$shortname in /usr/local/apache2/htdocs/corr/corr37/grade/grading/form/guide/lib.php on line 330

       

      Looking at the table structure of  mdl_gradingform_guide_criteria in both databases, I noticed that the "shortname" field was changed to "name" between the two iterations of the database.

       

      The code in question uses 'shortname' in this block of text and in three other locations.

       

      Should this be changed to get rid of the notices?

        Attachments

        1. m33.png
          m33.png
          308 kB
        2. m37.png
          m37.png
          487 kB
        3. m37code.png
          m37code.png
          85 kB
        4. Screen Shot 2019-07-05 at 8.05.09 AM.png
          Screen Shot 2019-07-05 at 8.05.09 AM.png
          462 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dr.tech Larry M Elchuck, Ph.D.
              Participants:
              Component watchers:
              Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: