From 869390325eb1dba66dda7a02ccb3a08245bb3a18 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Tue, 17 May 2016 21:59:58 +0200 Subject: [PATCH] Fixed missing title and incorrect error message. --- api/v3/Profile.php | 1 + tests/phpunit/api/v3/UFGroupTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v3/Profile.php b/api/v3/Profile.php index ab7f1c092d..54b7a652df 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -364,6 +364,7 @@ function civicrm_api3_profile_apply($params) { */ function _civicrm_api3_profile_apply_spec(&$params) { $params['profile_id']['api.required'] = 1; + $params['profile_id']['title'] = 'Profile ID'; } /** diff --git a/tests/phpunit/api/v3/UFGroupTest.php b/tests/phpunit/api/v3/UFGroupTest.php index 9afc25bdf9..204680804e 100644 --- a/tests/phpunit/api/v3/UFGroupTest.php +++ b/tests/phpunit/api/v3/UFGroupTest.php @@ -196,7 +196,7 @@ class api_v3_UFGroupTest extends CiviUnitTestCase { } public function testUFGroupUpdateWithEmptyParams() { - $result = $this->callAPIFailure('uf_group', 'create', array(), 'Mandatory key(s) missing from params array: version, title'); + $result = $this->callAPIFailure('uf_group', 'create', array(), 'Mandatory key(s) missing from params array: title'); } public function testUFGroupDelete() { -- 2.25.1