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

Undefined variable CFG in equella and boxnet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.1
    • 2.7
    • Repositories
    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • wip-MDL-46038-master
    • Hide

      Proper test (the one that was missed in MDL-40079):

      1. Setup equella and boxnet repositories
      2. Add shortcuts to files there in some filearea (i.e. private files)
      3. Wait for one day
      4. Open filearea for editing and make sure there are no warnings

      Reasonable test:

      1. Review the code
      Show
      Proper test (the one that was missed in MDL-40079 ): Setup equella and boxnet repositories Add shortcuts to files there in some filearea (i.e. private files) Wait for one day Open filearea for editing and make sure there are no warnings Reasonable test: Review the code

      On editing file area that contained references to Equella I received error:

      Notice: Undefined variable: CFG in /home/marina/repositories/master/moodle/repository/equella/lib.php on line 211
       
      Notice: Trying to get property of non-object in /home/marina/repositories/master/moodle/repository/equella/lib.php on line 211
       
      Notice: Trying to get property of non-object in /home/marina/repositories/master/moodle/repository/equella/lib.php on line 219
       
      Notice: Undefined variable: CFG in /home/marina/repositories/master/moodle/repository/equella/lib.php on line 219
      

      I found that this is a regression from MDL-40079 and the same error should happen in boxnet

            marina Marina Glancy
            marina Marina Glancy
            Mark Nelson Mark Nelson
            Damyon Wiese Damyon Wiese
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.