<tr valign="top">
<td align="right"><label for="shortname"><?php print_string('shortname') ?></label></td>
<td><?php
- echo '<input type="text" id="shortname" name="shortname" maxlength="20" size="15" value="'.s($role->shortname).'" />';
+ echo '<input type="text" id="shortname" name="shortname" maxlength="100" size="15" value="'.s($role->shortname).'" />';
if (isset($errors["shortname"])) formerr($errors["shortname"]);
?>
</td>
$suffixshort = "";
}
$currentfullname = $fullname.$suffixfull;
- // Limit the size of shortname - database column accepts <= 15 chars
- $currentshortname = substr($shortname, 0, 15 - strlen($suffixshort)).$suffixshort;
+ // Limit the size of shortname - database column accepts <= 100 chars
+ $currentshortname = substr($shortname, 0, 100 - strlen($suffixshort)).$suffixshort;
$coursefull = get_record("role","name",addslashes($currentfullname));
$courseshort = get_record("role","shortname",addslashes($currentshortname));
$counter++;
$suffixshort = "";
}
$currentfullname = $fullname.$suffixfull;
- // Limit the size of shortname - database column accepts <= 15 chars
- $currentshortname = substr($shortname, 0, 15 - strlen($suffixshort)).$suffixshort;
+ // Limit the size of shortname - database column accepts <= 100 chars
+ $currentshortname = substr($shortname, 0, 100 - strlen($suffixshort)).$suffixshort;
$coursefull = get_record("role","name",addslashes($currentfullname));
$courseshort = get_record("role","shortname",addslashes($currentshortname));
$counter++;