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

Warning notice when applying a preset with a view that has no field patterns.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.4, 2.7.1
    • 2.6.4, 2.7.1
    • Set: Dataform
    • None
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE

    Description

      When applying a preset that contains a view that has no field patterns warning notices are displayed in debug mode:

      Notice: undefined index: field in .../mod/dataform/backup/moodle2/restore_dataform_stepslib.php on line 189

      Warning: Invalid argument supplied for foreach() in .../mod/dataform/backup/moodle2/restore_dataform_stepslib.php on line 189

      This results from assuming the existence of view and field patterns when attempting to adjust field ids of restored views.

      Attachments

        Activity

          People

            itamart Itamar Tzadok
            itamart Itamar Tzadok
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Jul/14