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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.4, 2.7.1
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Set: Dataform
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      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

            • 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:
                14/Jul/14