*
* @return CRM_Core_DAO_OptionValue
*/
- public static function add(&$params, $ids) {
+ public static function add(&$params, $ids = array()) {
// CRM-10921: do not reset attributes to default if this is an update
//@todo consider if defaults are being set in the right place. 'dumb' defaults like
// these would be usefully set @ the api layer so they are visible to api users
*
*/
public static function addOptionValue(&$params, &$groupParams, &$action, &$optionValueID) {
+ $ids = array();
$params['is_active'] = CRM_Utils_Array::value('is_active', $params, FALSE);
// checking if the group name with the given id or name (in $groupParams) exists
if (!empty($groupParams)) {