Port back default on OptionGroup
authoreileenmcnaugton <eileen@fuzion.co.nz>
Sun, 22 May 2016 22:42:17 +0000 (10:42 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Sun, 22 May 2016 22:44:52 +0000 (10:44 +1200)
api/v3/OptionGroup.php

index 68ed79bd8ad834b664ffe2e1a039dd48d4e635c1..b7b0e7ebdc609ac71a80b1b8eedc93971f1b8d29 100644 (file)
@@ -66,6 +66,7 @@ function civicrm_api3_option_group_create($params) {
  */
 function _civicrm_api3_option_group_create_spec(&$params) {
   $params['name']['api.unique'] = 1;
+  $params['is_active']['api.default'] = TRUE;
 }
 
 /**