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

Moodle 3.0.2+ & choice-activity with size-limit generates error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: Choice
    • Labels:
      None
    • Affected Branches:
      MOODLE_30_STABLE

      Description

      Dear Moodle-Tracker Team,

      we have installed moodle 3.0.2+ (Build: 20160211). Today we wanted to add a choice-activity to a course with a max-limit for every option (f.e. group a & group b with a max size of 10 people).

      But if a student tries to select an option, he gets the error: the choice could not be saved (error/choice/cannotsubmit).

      If we deactivate the max-limit for the options , the choice-activity works fine.

      We locate a new source-code-part in .../mod/choice/lib.php from line 278 till 292. If we comment out line 288 ($choicelock=...) and 290 (print_error(...)) the choice activity works fine again.

      The Choicelock seems to lock every choice. That can´t be correct, or?

      EDIT: It seems that there is a problem with our MSSQL-CLuster and the lock-API. We have another moodle-instance with a maria-DB and the same code-base and the choice-plugin works fine there.

      Regards,
      Robin

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            robin.schroeder@hshl.de Robin Schroeder
            Participants:
            Component watchers:
            Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: