CRM-15547 - Current Employer not saved on Drupal user profile
authoratif-shaikh <shaikh388@gmail.com>
Fri, 31 Oct 2014 13:47:38 +0000 (19:17 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Fri, 31 Oct 2014 13:47:38 +0000 (19:17 +0530)
https://issues.civicrm.org/jira/browse/CRM-15547

CRM/Contact/BAO/Contact/Utils.php

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