From 3301016d34fb0d1954a43b8f5ff31e86d29b2b28 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Mon, 26 Oct 2015 20:43:07 +0100 Subject: [PATCH] CRM-17430 - I guess this will make the unit tests pass. ---------------------------------------- * 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v3/Domain.php b/api/v3/Domain.php index f72befdd45..eb31fdc2ed 100644 --- a/api/v3/Domain.php +++ b/api/v3/Domain.php @@ -157,6 +157,10 @@ function civicrm_api3_domain_create($params) { * Array of parameters determined by getfields. */ function _civicrm_api3_domain_create_spec(&$params) { + $params['domain_version'] = array( + 'title' => "CiviCRM Version", + 'description' => "The civicrm version this instance is running", + ); $params['domain_version']['api.required'] = 1; unset($params['version']); $params['name']['api.required'] = 1; -- 2.25.1