$field->setName($data['custom_group_id.name'] . '.' . $data['name']);
}
else {
+ // Fields belonging to custom entities are treated as normal; type = Field instead of Custom
+ $field->setType('Field');
$field->setTableName($data['custom_group_id.table_name']);
}
$field->setColumnName($data['column_name']);
};
function getFieldsForJoin(joinEntity) {
- return {results: ctrl.getAllFields(':name', ['Field', 'Custom'], null, joinEntity)};
+ return {results: ctrl.getAllFields(':name', ['Field'], null, joinEntity)};
}
+ // @return {function}
$scope.fieldsForJoin = function(joinEntity) {
if (!fieldsForJoinGetters[joinEntity]) {
fieldsForJoinGetters[joinEntity] = _.wrap(joinEntity, getFieldsForJoin);
$expectedResult = [
[
'custom_group' => $group,
- 'type' => 'Custom',
+ 'type' => 'Field',
'name' => $colorFieldName,
'title' => $colorFieldName,
'entity' => "Custom_$group",
],
[
'custom_group' => $group,
- 'type' => 'Custom',
+ 'type' => 'Field',
'name' => $multiFieldName,
'title' => $multiFieldName,
'entity' => "Custom_$group",
],
[
'custom_group' => $group,
- 'type' => 'Custom',
+ 'type' => 'Field',
'name' => $textFieldName,
'title' => $textFieldName,
'entity' => "Custom_$group",