Commit 274bc0eb authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Revert "Correcting licensedefault's default value for 'no institution'"

This patch caused a regression. See Bug 1296915

This reverts commit 9d491d4a.

Change-Id: I819066517ad3c1b4205c6b9a36b18530b3a2fb70
parent 9d491d4a
......@@ -99,10 +99,7 @@ $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