File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,17 @@ function setFocus(){
85
85
$ form ->applyFilter ('title ' , 'html_filter ' );
86
86
$ form ->addRule ('title ' , get_lang ('ThisFieldIsRequired ' ), 'required ' );
87
87
88
+ if ($ course_validation_feature ) {
89
+ // Description of the requested course.
90
+ $ form ->addElement (
91
+ 'textarea ' ,
92
+ 'description ' ,
93
+ get_lang ('Description ' ),
94
+ ['rows ' => '3 ' ]
95
+ );
96
+ $ form ->addRule ('description ' , get_lang ('ThisFieldIsRequired ' ), 'required ' );
97
+ }
98
+
88
99
if (!api_get_configuration_value ('course_creation_form_set_course_category_mandatory ' )) {
89
100
$ form ->addButtonAdvancedSettings ('advanced_params ' );
90
101
$ form ->addElement (
@@ -171,14 +182,6 @@ function setFocus(){
171
182
// The teacher
172
183
$ titular = &$ form ->addElement ('hidden ' , 'tutor_name ' , '' );
173
184
if ($ course_validation_feature ) {
174
- // Description of the requested course.
175
- $ form ->addElement (
176
- 'textarea ' ,
177
- 'description ' ,
178
- get_lang ('Description ' ),
179
- ['rows ' => '3 ' ]
180
- );
181
-
182
185
// Objectives of the requested course.
183
186
$ form ->addElement (
184
187
'textarea ' ,
You can’t perform that action at this time.
0 commit comments