Skip to content

Commit

Permalink
Add lp_item as a resource that can have extra fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed May 15, 2015
1 parent baf51f0 commit 2ab5aab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main/inc/lib/extra_field.lib.php
Expand Up @@ -95,6 +95,9 @@ public function __construct($type)
case 'lp':
$this->extraFieldType = EntityExtraField::LP_FIELD_TYPE;
break;
case 'lp_item':
$this->extraFieldType = EntityExtraField::LP_ITEM_FIELD_TYPE;
break;
}

$this->pageUrl = 'extra_fields.php?type='.$this->type;
Expand All @@ -121,7 +124,8 @@ public static function getValidExtraFieldTypes()
'session',
'question',
'lp',
'calendar_event'
'calendar_event',
'lp_item'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Chamilo/CoreBundle/Entity/ExtraField.php
Expand Up @@ -23,6 +23,7 @@ class ExtraField extends BaseAttribute
const QUESTION_FIELD_TYPE = 4;
const CALENDAR_FIELD_TYPE = 5;
const LP_FIELD_TYPE = 6;
const LP_ITEM_FIELD_TYPE = 7;

/**
* @var integer
Expand Down

0 comments on commit 2ab5aab

Please sign in to comment.