Set message after updating Relationship
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 27 Apr 2015 11:49:39 +0000 (17:19 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 27 Apr 2015 11:49:39 +0000 (17:19 +0530)
CRM/Contact/Form/Relationship.php

index e566de97b88017d600e2299d4df795d75dbfe8e6..db02b8966967f22dfa043a9fda61ace7fea26bdb 100644 (file)
@@ -438,7 +438,10 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
           $this->ajaxResponse['reloadBlocks'] = array('#crm-contactinfo-content');
         }
       }
-      $this->setMessage(ts('The relationship has been updated'));
+      if (empty($outcome['saved']) && !empty($update)) {
+        $outcome['saved'] = $update;
+      }
+      $this->setMessage($outcome);
     }
     // Create mode (could be 1 or more relationships)
     else {