Remove CourseField class - refs BT#9413

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent 2f728370e4
commit 263290de55
  1. 2
      main/admin/course_add.php
  2. 4
      main/admin/course_edit.php
  3. 28
      main/inc/lib/CourseField.php

@ -114,7 +114,7 @@ $obj = new GradeModel();
$obj->fill_grade_model_select_in_form($form);
//Extra fields
$extra_field = new CourseField();
$extra_field = new ExtraField('course');
$extra = $extra_field->addElements($form);
$htmlHeadXtra[] ='

@ -202,7 +202,7 @@ $form->addElement('text', 'disk_quota', array(get_lang('CourseQuota'), null, get
$form->addRule('disk_quota', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('disk_quota', get_lang('ThisFieldShouldBeNumeric'), 'numeric');
$specialCourseField = new CourseField();
$specialCourseField = new ExtraField('course');
$specialCourseFieldInfo = $specialCourseField->get_handler_field_info_by_field_variable('special_course');
if (!empty($specialCourseFieldInfo)) {
@ -231,7 +231,7 @@ if (!empty($specialCourseFieldInfo)) {
}
//Extra fields
$extra_field = new CourseField();
$extra_field = new ExtraField('course');
$extra = $extra_field->addElements($form, $courseId);
$htmlHeadXtra[] = '

@ -1,28 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Manage the course extra fields
* @package chamilo.library
*/
/**
* Manage the course extra fields
*
* Add the extra fields to the form excluding the Special Course Field
*/
class CourseField extends ExtraField
{
/**
* Special Course extra field
*/
const SPECIAL_COURSE_FIELD = 'special_course';
/**
* Class constructor
*/
public function __construct()
{
parent::__construct('course');
}
}
Loading…
Cancel
Save