diff --git a/public/main/forum/editthread.php b/public/main/forum/editthread.php
index aa709d7cbbe..3b90b6e0b13 100644
--- a/public/main/forum/editthread.php
+++ b/public/main/forum/editthread.php
@@ -241,18 +241,13 @@ function setFocus() {
if ((api_is_course_admin() || api_is_session_general_coach() || api_is_course_tutor()) && $threadId) {
// Thread qualify
- if (Gradebook::is_active()) {
- // Loading gradebook select
- GradebookUtils::load_gradebook_select_in_tool($form);
- $form->addElement(
- 'checkbox',
- 'thread_qualify_gradebook',
- '',
- get_lang('Grade this thread')
- );
- } else {
- $form->addElement('hidden', 'thread_qualify_gradebook', false);
- }
+ GradebookUtils::load_gradebook_select_in_tool($form);
+ $form->addElement(
+ 'checkbox',
+ 'thread_qualify_gradebook',
+ '',
+ get_lang('Grade this thread')
+ );
$form->addElement('html', '
');
$form->addElement('text', 'numeric_calification', get_lang('Maximum score'));
diff --git a/public/main/forum/forumfunction.inc.php b/public/main/forum/forumfunction.inc.php
index c249d736d40..3c87ee367fb 100644
--- a/public/main/forum/forumfunction.inc.php
+++ b/public/main/forum/forumfunction.inc.php
@@ -2405,25 +2405,18 @@ function newThread(CForum $forum, $form_values = '', $showPreview = true)
[] // extra data);
);
- if (Gradebook::is_active() &&
- (api_is_course_admin() || api_is_session_general_coach() || api_is_course_tutor())
- ) {
+ if ((api_is_course_admin() || api_is_session_general_coach() || api_is_course_tutor())) {
$form->addElement('advanced_settings', 'advanced_params', get_lang('Advanced settings'));
$form->addElement('html', '
');
// Thread qualify
- if (Gradebook::is_active()) {
- //Loading gradebook select
- GradebookUtils::load_gradebook_select_in_tool($form);
- $form->addCheckBox(
- 'thread_qualify_gradebook',
- '',
- get_lang('Grade this thread'),
- ['onclick' => 'javascript:if(this.checked==true){document.getElementById(\'options_field\').style.display = \'block\';}else{document.getElementById(\'options_field\').style.display = \'none\';}']
- );
- } else {
- $form->addElement('hidden', 'thread_qualify_gradebook', false);
- }
+ GradebookUtils::load_gradebook_select_in_tool($form);
+ $form->addCheckBox(
+ 'thread_qualify_gradebook',
+ '',
+ get_lang('Grade this thread'),
+ ['onclick' => 'javascript:if(this.checked==true){document.getElementById(\'options_field\').style.display = \'block\';}else{document.getElementById(\'options_field\').style.display = \'none\';}']
+ );
$form->addElement('html', '
');
$form->addElement('text', 'numeric_calification', get_lang('Maximum score'));