From b247a7325b4c3351fe184f874fe41360da183c5d Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 22 Sep 2015 15:16:20 +0530 Subject: [PATCH] CRM-17247 fix - Vaildation fails silently on required fields (Drupal user editing) https://issues.civicrm.org/jira/browse/CRM-17247 --- CRM/Core/BAO/UFGroup.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Core/BAO/UFGroup.php b/CRM/Core/BAO/UFGroup.php index 5f18788fdcd1..d4b6a4eda099 100644 --- a/CRM/Core/BAO/UFGroup.php +++ b/CRM/Core/BAO/UFGroup.php @@ -715,8 +715,8 @@ protected static function getCustomFields($ctype) { * * @param int $userID * The user id that we are actually editing. - * @param string $title - * The title of the group we are interested in. + * @param string $name + * The machine-name of the group we are interested in. * @param bool $register * @param int $action * The action of the form. @@ -725,7 +725,7 @@ protected static function getCustomFields($ctype) { * @return bool * true if form is valid */ - public static function isValid($userID, $title, $register = FALSE, $action = NULL) { + public static function isValid($userID, $name, $register = FALSE, $action = NULL) { if ($register) { $controller = new CRM_Core_Controller_Simple('CRM_Profile_Form_Dynamic', ts('Dynamic Form Creator'), @@ -740,7 +740,7 @@ public static function isValid($userID, $title, $register = FALSE, $action = NUL // make sure we have a valid group $group = new CRM_Core_DAO_UFGroup(); - $group->title = $title; + $group->name = $name; if ($group->find(TRUE) && $userID) { $controller = new CRM_Core_Controller_Simple('CRM_Profile_Form_Dynamic', ts('Dynamic Form Creator'), $action);