diff --git a/main/inc/lib/extra_field.lib.php b/main/inc/lib/extra_field.lib.php index 16e7a3d3ce..2cccf77714 100755 --- a/main/inc/lib/extra_field.lib.php +++ b/main/inc/lib/extra_field.lib.php @@ -126,6 +126,10 @@ class ExtraField extends Model break; case 'skill': $this->extraFieldType = EntityExtraField::SKILL_FIELD_TYPE; + break; + case 'work': + $this->extraFieldType = EntityExtraField::WORK_FIELD_TYPE; + break; } $this->pageUrl = 'extra_fields.php?type='.$this->type; @@ -154,7 +158,8 @@ class ExtraField extends Model 'lp', 'calendar_event', 'lp_item', - 'skill' + 'skill', + 'work' ); } diff --git a/src/Chamilo/CoreBundle/Entity/ExtraField.php b/src/Chamilo/CoreBundle/Entity/ExtraField.php index 98d337d03f..297a6c902d 100644 --- a/src/Chamilo/CoreBundle/Entity/ExtraField.php +++ b/src/Chamilo/CoreBundle/Entity/ExtraField.php @@ -25,6 +25,7 @@ class ExtraField extends BaseAttribute const LP_FIELD_TYPE = 6; const LP_ITEM_FIELD_TYPE = 7; const SKILL_FIELD_TYPE = 8; + const WORK_FIELD_TYPE = 9; /** * @var integer