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

Editing question with extra_question_fields doesn't load 0-values into controls [patch]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.9, 2.0
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Simple, but hard to notice issue: we should have used isset() instead of empty(), since empty() doesn't work good on all values.

      Hope it doesn't take you too long to apply this - it is hindering preg question testing and development. The patch is absurdly easy...

        Attachments

          Activity

            People

            Assignee:
            ppichet Pierre Pichet
            Reporter:
            oa_sychev Oleg Sychev
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: