Commit ea838b3e authored by jaapjansma's avatar jaapjansma
Browse files

Fixed issue with custom fields and is view

parent ac239969
...@@ -60,10 +60,6 @@ class UpdateCustomData extends AbstractAction { ...@@ -60,10 +60,6 @@ class UpdateCustomData extends AbstractAction {
$customFields = civicrm_api3('CustomField', 'get', array('custom_group_id' => $customGroup['id'], 'is_active' => 1, 'options' => array('limit' => 0))); $customFields = civicrm_api3('CustomField', 'get', array('custom_group_id' => $customGroup['id'], 'is_active' => 1, 'options' => array('limit' => 0)));
foreach($customFields['values'] as $customField) { foreach($customFields['values'] as $customField) {
if (isset($customField['is_view']) && $customField['is_view']) {
continue;
}
$spec = CustomField::getSpecFromCustomField($customField, $customGroup['title'].': ', false); $spec = CustomField::getSpecFromCustomField($customField, $customGroup['title'].': ', false);
if ($spec) { if ($spec) {
$specs->addSpecification($spec); $specs->addSpecification($spec);
......
...@@ -25,6 +25,8 @@ class CustomField { ...@@ -25,6 +25,8 @@ class CustomField {
switch ($type) { switch ($type) {
case 'Int': case 'Int':
case 'ContactReference': case 'ContactReference':
case 'StateProvince':
case 'Country':
$type = 'Integer'; $type = 'Integer';
break; break;
case 'File': case 'File':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment