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

Throw warning when new fields are entered in database with existing entries

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      How Moodle works now

      You add a newly created field (e.g. file) to the entry template of a database. This database already contains at least one existing entry. You then want to fill in the new field in an existing entry. You may enter e.g. the file but when saving Moodle throws the following error: moodle/error/dmlereadexception. In case of the file, the file is saved but not displayed in single or list view.

      Improvement request

      Instead of just throwing moodle/error/dmlereadexception when saving the new fiel (e.g. file) to an existing entry, it would be nice if moodle would inform the user when creating a new field in a database with existing entries that this field cannot be used in old entries. Alternatively one might consider to fix this in order that it is possible to add and fill in new fields in existing entries.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lucaboesch Luca Bösch
                Reporter:
                a.bonaccorso Antonia Bonaccorso
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: