Commit ced538b5 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Notes: Change to switchbox (Bug 1431569)"

parents e5a04163 6c7ef022
......@@ -382,7 +382,7 @@ EOF;
'value' => '<div id="instconf_licensereadonly_display">' . (isset($artefact) ? render_license($artefact) : get_string('licensenone')) . '</div>',
),
'allowcomments' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('allowcomments', 'artefact.comment'),
'defaultvalue' => (!empty($artefact) ? $artefact->get('allowcomments') : 1),
),
......
......@@ -103,7 +103,7 @@ $form = array(
'unselectcallback' => 'delete_note_attachment',
),
'allowcomments' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('allowcomments', 'artefact.comment'),
'defaultvalue' => $artefact->get('allowcomments'),
),
......
Supports Markdown
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