diff --git a/mod/feedback/edit.php b/mod/feedback/edit.php index 6aaf783105f..ca5293ae34e 100644 --- a/mod/feedback/edit.php +++ b/mod/feedback/edit.php @@ -99,11 +99,12 @@ if(isset($create_template_formdata->savetemplate) && $create_template_formdata-> { $savereturn = 'notsaved_name'; }else { - if(has_capability('mod/feedback:createpublictemplate', $context)) { - $create_template_formdata->ispublic = isset($create_template_formdata->ispublic) ? 1 : 0; - }else { + //public templates are currently deaktivated + // if(has_capability('mod/feedback:createpublictemplate', $context)) { + // $create_template_formdata->ispublic = isset($create_template_formdata->ispublic) ? 1 : 0; + // }else { $create_template_formdata->ispublic = 0; - } + // } if(!feedback_save_as_template($feedback, $create_template_formdata->templatename, $create_template_formdata->ispublic)) { $savereturn = 'failed'; diff --git a/mod/feedback/edit_form.php b/mod/feedback/edit_form.php index ab5b84c7648..b5f4714d0ee 100644 --- a/mod/feedback/edit_form.php +++ b/mod/feedback/edit_form.php @@ -129,9 +129,11 @@ class feedback_edit_create_template_form extends moodleform { $elementgroup[] =& $mform->createElement('static', 'templatenamelabel', get_string('name', 'feedback')); $elementgroup[] =& $mform->createElement('text', 'templatename', get_string('name', 'feedback'), array('size'=>'40', 'maxlength'=>'200')); - if(has_capability('mod/feedback:createpublictemplate', $this->feedbackdata->context)) { - $elementgroup[] =& $mform->createElement('checkbox', 'ispublic', get_string('public', 'feedback'), get_string('public', 'feedback')); - } + + //public templates are currently deactivated + // if(has_capability('mod/feedback:createpublictemplate', $this->feedbackdata->context)) { + // $elementgroup[] =& $mform->createElement('checkbox', 'ispublic', get_string('public', 'feedback'), get_string('public', 'feedback')); + // } // buttons $elementgroup[] =& $mform->createElement('submit', 'create_template', get_string('save_as_new_template', 'feedback'));