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

block_instance->configdata is NOT NULL, sometimes record is inserted withouth configdata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Blocks
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I've detected that, in blog_check_and_install_blocks(), called each time one user access to his blogs page the first time, two blocks are created.

      Such block creation doesn't include information for dataconfig at all, and such field in DB is defined as mandatory (NOT NULL).

      So, one of these is true:

      1) The calls ("2") in the functions above are wrong and should include dataconfig.
      2) The dataconfig field must be declared optional (nullable).

      In logic, I think that 2) is the correct one, but need confirmation.

      Ciao

        Attachments

          Activity

            People

            • Assignee:
              lazyfish Yu Zhang
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08