CRM-19118 Fix Syntax Confromance test by specifiy data for children and parent fields...
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 22 Jul 2016 22:23:11 +0000 (08:23 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 22 Jul 2016 22:23:11 +0000 (08:23 +1000)
CRM/Contact/BAO/Group.php

index cf6483eba9aa0edcdc9de0beb02cee7434ace802..e6ff9a80068484aa5f50956a0f08e786f602fc97 100644 (file)
@@ -1323,4 +1323,20 @@ WHERE {$whereClause}";
     return CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
   }
 
+  /**
+   * Assign Test Value.
+   *
+   * @param string $fieldName
+   * @param array $fieldDef
+   * @param int $counter
+   */
+  protected function assignTestValue($fieldName, &$fieldDef, $counter) {
+    if ($fieldName == 'children' || $fieldName = 'parents') {
+      $this->{$fieldName} = "NULL";
+    }
+    else {
+      parent::assignTestValues($fieldaName, $fieldDef, $counter);
+    }
+  }
+
 }