Moodle

Cannot change case of group (or grouping) name

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.4
  • Component/s: Groups
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

If you try to update the case of a group name (e.g. change "MY GROUP" to "My Group"), you get this error:

The group name 'My Group' already exists in this course, please choose another one.

Same goes for Groupings.

Easy enough to fix this, see attached patch. The scripts concerned already check to see whether the name is unchanged, I just changed that condition so that it does a case-insensitive comparison. As far as I can tell this doesn't cause any other problems.

Activity

Hide
Petr Škoda (skodak) added a comment -

I have fixed both groups and groupings using unicode compatible case insensitive comparison, thanks for the report and patch!

Petr

Show
Petr Škoda (skodak) added a comment - I have fixed both groups and groupings using unicode compatible case insensitive comparison, thanks for the report and patch! Petr
Hide
Eloy Lafuente (stronk7) added a comment -

Working ok here. Closing. Thanks!

Show
Eloy Lafuente (stronk7) added a comment - Working ok here. Closing. Thanks!

People

Dates

  • Created:
    Updated:
    Resolved: