Moodle
  1. Moodle
  2. MDL-24133

Invalid state passed to moodle_page::set_state in database module

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.2
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      6389

      Description

      add an instance of database module to a course (as admin, for instance)
      be carefull to set Maximum entries = 1
      select a student of the course and login as him/her
      add the student's first entry using the "Save and add another" button
      the form will appear again (because of MDL-24033)
      fill the form for the second time
      you will get 2 errors:
      the first one: the message "You have entered the maximum number of entries allowed!" is displayed before the moodle page header
      the last one: in the frame of the page the following message appear: "Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 0 and state 3 was requested."

        Issue Links

          Activity

          Hide
          Dan Poltawski added a comment -

          I've fixed this problem and submitted pull request PULL-88

          Show
          Dan Poltawski added a comment - I've fixed this problem and submitted pull request PULL-88

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: