← Back to team overview

mahara-contributors team mailing list archive

[Bug 1607538] Re: Can't choose group shortname that is different from group name

 

This is somewhat related to bug #1603302. From that bug, items 2 and 3
move over here:

2. A common validation function needs to be created so the edit group,
upload csv, and webservice group creation are using the same rules.
Therefore, we won't have multiple validation functions for the same
thing throughout the code.

3. We can eliminate the 'retainshortname' flag as we would have already
validated the shortname if it got to the group_create() function.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1607538

Title:
  Can't choose group shortname that is different from group name

Status in Mahara:
  Confirmed

Bug description:
  Only affects master 16.10 as it's related to new functionality

  When I try to upload the attached CSV file, I get error messages along
  the lines of the following on master:

  group_create: The supplied shortname 'open' is already taken. This
  shortname 'openmembershipgroup' is available.

  This is a double problem:

  1. The group shortname "open" does not yet exist as it's an empty Mahara site.
  2. I should be able to choose my own shortnames (as long as they really haven't been taken) no matter what the actual group name is. 

  Currently, the shortname is just the groupname without capital letters
  and spaces. Nobody would set that up without being given instructions.
  Institutions might choose to use course shortnames as group shortnames
  but have the group titles display something entirely differently, e.g.
  the actual title of the course.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1607538/+subscriptions


References