Commit fb20f1ee authored by Seamus Lee's avatar Seamus Lee Committed by deb.monish
Browse files

Minor fix

parent f7ed3a24
......@@ -122,6 +122,8 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
'is_active',
'is_multiple',
);
$current_db_version = CRM_Core_DAO::singleValueQuery("SELECT version FROM civicrm_domain WHERE id = " . CRM_Core_Config::domainID());
$is_public_version = $current_db_version >= '4.7.19' ? 1 : 0;
if ($is_public_version) {
$fields[] = 'is_public';
}
......
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