Commit 9d491d4a authored by Robert Lyon's avatar Robert Lyon

Correcting licensedefault's default value for 'no institution'

Bug #1251089

Change-Id: Ib7cff43da8c37c383985e0a5b254280aba138bd5
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent c38e12db
......@@ -99,7 +99,10 @@ $elements['accountoptionsdesc'] = array(
// Add general account options
$elements = array_merge($elements, general_account_prefs_form_elements($prefs));
// make licensedefault's defaultvalue more sane - remove '(institution default)'
if (array_search($elements['licensedefault']['defaultvalue'], array_keys($elements['licensedefault']['options'])) === false) {
$elements['licensedefault']['defaultvalue'] = '';
}
$blogcount = count_records('artefact', 'artefacttype', 'blog', 'owner', $USER->get('id')) ;
if ($blogcount != 1 && $prefs->multipleblogs == 1) {
$elements['multipleblogs']['readonly'] = true;
......
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