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

Error when creating an "image gallery" preset database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Follow these steps to reproduce the error:

      1. Create a new database activity
      2. Add a picture field and call it 'picture'
      3. Click the "presets" tab
      4. Tick the "image gallery" radio button then click "choose"
      5. Map the image field to your 'picture' field, leave the other 2 untouched
      6. Click continue

      I get this:
      Notice: Undefined offset: 0 in /moodle/nick/18/mod/data/preset.php on line 660
      Fatal error: Call to undefined function: update_field() in /moodle/nick/18/mod/data/preset.php on line 667

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            nicolasconnault Nicolas Connault
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jun/07