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

Grouping update doesn't work for "None" value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      If section's Grouping access set to not default value - attempt to set it back to "None" fails.
      editsection.php code currently states:
      if (!empty($data->groupingid))

      { $section->groupingid = $data->groupingid; }

      adding below statement fixes the issue
      else

      { $section->groupingid = 0;}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                moodle.com moodle.com
                Reporter:
                tania Tatiana Arvanitaki
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: