From 6a229760af5042bafd80b434649057d8754186e1 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Sat, 24 Oct 2015 10:43:04 +0200 Subject: [PATCH] CRM-17430 domain_version not required anymore. The failing unit tests had to do with api calls without a domain_version param, while domain_version was marked as required. But I don't really see the point of that. Besides, before I fixed this issue, you could call the Domain.create API without domain_version. It would then just (incorrectly) use 3 as domain_version. So now domain_version is not required any more, I guess this will fix some test errors. ---------------------------------------- * CRM-17430: Altering the domain using the API changes the CiviCRM version to 3 https://issues.civicrm.org/jira/browse/CRM-17430 --- api/v3/Domain.php | 1 - 1 file changed, 1 deletion(-) diff --git a/api/v3/Domain.php b/api/v3/Domain.php index f72befdd45..2c7cf6504b 100644 --- a/api/v3/Domain.php +++ b/api/v3/Domain.php @@ -157,7 +157,6 @@ function civicrm_api3_domain_create($params) { * Array of parameters determined by getfields. */ function _civicrm_api3_domain_create_spec(&$params) { - $params['domain_version']['api.required'] = 1; unset($params['version']); $params['name']['api.required'] = 1; } -- 2.25.1