Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5040

Notice: Undefined variable: df in C:\wamp2\www\moodle26\mod\dataform\classes\view_manager.php

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.3
    • Component/s: Set: Dataform
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE

      Description

      Notice: Undefined variable: df in C:\wamp2\www\moodle26\mod\dataform\classes\view_manager.php on line 182.

      Solution, replace

      if (!$viewid and !$viewid = $df->defaultview) {
      

      with

      if (!$viewid and !$viewid = \mod_dataform_dataform::instance($this->_dataformid)->defaultview) {
      

        Attachments

          Activity

            People

            • Assignee:
              itamart Itamar Tzadok
              Reporter:
              itamart Itamar Tzadok
              Tester:
              Itamar Tzadok
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14