Commit 258273c4 authored by Robert Lyon's avatar Robert Lyon Committed by Son Nguyen

Bug 1613503: Validate the shortname generated from provided shortname in CSV

not from displayname

behatnotneeded

Change-Id: If7134f6b97031fc848684b053795a02504b27316
parent 92ff38eb
......@@ -356,7 +356,7 @@ function group_create($data) {
if (!empty($data['shortname'])) {
// make sure it is unique and is correct length
$shortname = group_generate_shortname($data['name']);
$shortname = group_generate_shortname($data['shortname']);
// If we want to retain the supplied shortname we need to make sure it can be done
if (!empty($data['retainshortname'])) {
if ($shortname != $data['shortname']) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment