is_numeric check on CRM-15368
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 29 Sep 2014 09:07:04 +0000 (14:37 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 29 Sep 2014 09:07:04 +0000 (14:37 +0530)
CRM/Contact/BAO/Contact/Utils.php

index e7161fd5d38869635990b55d3cd3769b05985690..da8e28d22387b7bb7eea4f601aa0dfff8936765d 100644 (file)
@@ -286,7 +286,7 @@ UNION
    */
   static function createCurrentEmployerRelationship($contactID, $organization, $previousEmployerID = NULL, $newContact = FALSE) {
     //if organization name is passed. CRM-15368
-    if ($newContact && is_string($organization)) {
+    if ($newContact && !is_numeric($organization)) {
       $organizationParams['organization_name'] = $organization;
       $dedupeParams = CRM_Dedupe_Finder::formatParams($organizationParams, 'Organization');