Merge pull request #20837 from colemanw/customACLs
[civicrm-core.git] / CRM / Core / BAO / CustomField.php
index 944f49878feb321f9b3d88e39af21d1909794705..4664efbf0dd025022c9e6e99e1b06914237557eb 100644 (file)
@@ -2020,7 +2020,7 @@ WHERE  id IN ( %1, %2 )
       // the option_values key. If not set then it is not ignored.
       $optionsType = (int) ($params['option_type'] ?? 0);
       if (($optionsType !== 2 && empty($params['id']))
-        && (empty($params['option_group_id']) || !empty($params['option_value'])
+        && (empty($params['option_group_id']) && !empty($params['option_value'])
         )
       ) {
         // first create an option group for this custom group