Commit 4ed08ad3 authored by Jamie McClelland's avatar Jamie McClelland
Browse files

appropriate function call to clear the custom field list cache.

parent 4d19d17a
......@@ -1486,7 +1486,10 @@ function petitionemail_create_custom_fields() {
$values = array_pop($results['values']);
$id = $values['id'];
CRM_Core_BAO_Setting::setItem($id, $group, $key);
// Force the fields list to be regenerated so we don't get an error
// saying that the field name is not valid when we add this field to a profile
// The only reason we call this is to overwrite the static variable.
Supports Markdown
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