Added Extra Fields handler to works - Refs BT#12212

remotes/angel/1.11.x
José Loguercio 8 years ago
parent 056b9cdf2d
commit 2eb953cc40
  1. 7
      main/inc/lib/extra_field.lib.php
  2. 1
      src/Chamilo/CoreBundle/Entity/ExtraField.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'
);
}

@ -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

Loading…
Cancel
Save