Moodle
  1. Moodle
  2. MDL-30951

Receive error message when removing a user from a Role in Category enrolment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.3, 2.2, 2.3
    • Fix Version/s: 2.1.4, 2.2.1
    • Component/s: Enrolments
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      In a Category, click Assign Roles, then Student, then choose a user from Existing Users, click Remove, receive error message. Student is removed though.

      Show
      In a Category, click Assign Roles, then Student, then choose a user from Existing Users, click Remove, receive error message. Student is removed though.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w52_MDL-30951_m23_catsync
    • Rank:
      37349

      Description

      Receive the following message when removing a user from a Role in Category enrolment: Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays

      Student is removed but that message displays afterward.

        Issue Links

          Activity

          Hide
          Petr Škoda added a comment -

          Workaround is to add 'enrol/category:synchronised' to at least one role when enabling category synchronisation - it would nto work otherwise anyway.
          Thanks a lot for the report, I am submitting patch for integration.

          Show
          Petr Škoda added a comment - Workaround is to add 'enrol/category:synchronised' to at least one role when enabling category synchronisation - it would nto work otherwise anyway. Thanks a lot for the report, I am submitting patch for integration.
          Hide
          Petr Škoda added a comment -

          To integrators: please cherry pick to 2.x stable branches

          Show
          Petr Škoda added a comment - To integrators: please cherry pick to 2.x stable branches
          Hide
          Eloy Lafuente (stronk7) added a comment -

          This has been applied to 21, 22 and master. (20 is out of support). Thanks!

          Show
          Eloy Lafuente (stronk7) added a comment - This has been applied to 21, 22 and master. (20 is out of support). Thanks!
          Hide
          Ankit Agarwal added a comment -

          Hi,
          I had to enable enrollment of students into category from users>permissions>define roles.
          Once that was done all things went fine without any error.
          passing!
          Thanks

          Show
          Ankit Agarwal added a comment - Hi, I had to enable enrollment of students into category from users>permissions>define roles. Once that was done all things went fine without any error. passing! Thanks
          Hide
          Eloy Lafuente (stronk7) added a comment -

          The git and cvs repositories are happy receiving your very first contribution to Moodle for 2012. Happy new year!

          Closing, ciao

          Show
          Eloy Lafuente (stronk7) added a comment - The git and cvs repositories are happy receiving your very first contribution to Moodle for 2012. Happy new year! Closing, ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved: