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

Database module allows you to start adding new entries even if the maximum has already been reached

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 1.9.9
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      -> As admin, among the settings of an instance of database module, I set: Maximum entries = 1
      -> As student I go to add a record to the database and all is fine
      -> Now, always as the same student, I try to add one more record even if Maximum entries = 1
      -> First weird event: The "Add entry" TAB is still visible.
      -> I proceed to add one more record, I get the form, I fill it and I go to submit it.
      -> At the submit time I get the following message: "You have entered the maximum number of entries allowed!"

      As far as I can I would prevent this behavior. Students should be stopped before filling the form, not after!!!!
      (Forms here, may be hundred fields long and I am helping students to waste their time!)
      I find this behavior not too correct.
      Do you agree?

        Gliffy Diagrams

          Attachments

          1. 2010092302-MDL24033-m20-edit.patch
            1 kB
          2. 20100923-MDL24033-m19-edit.patch
            2 kB
          3. edit_m20.patch
            0.6 kB
          4. edit_newidea.patch
            0.8 kB
          5. edit.patch
            0.5 kB
          6. tabs_m20.patch
            0.8 kB
          7. tabs.patch
            0.8 kB

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jun/10