Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Commit

Permalink
Added clear cache after creating custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapjansma committed Dec 5, 2019
1 parent 9cbe97f commit ceebced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Civiconfig/Entity/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public function create(array $params) {
if (isset($params['option_group'])) {
$this->fixOptionGroups($id, $params['option_group']);
}
// Flush the cache
CRM_Utils_System::flushCache();
return $id;
}

Expand Down Expand Up @@ -138,4 +140,4 @@ public static function removeUnwantedCustomFields($customGroupId, $configCustomG
}
return TRUE;
}
}
}

0 comments on commit ceebced

Please sign in to comment.