From: jitendrapurohit Date: Mon, 27 Apr 2015 11:49:39 +0000 (+0530) Subject: Set message after updating Relationship X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0cd647f0d2f081de00d0c1802459285c2456c54d;p=civicrm-core.git Set message after updating Relationship --- diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index e566de97b8..db02b89669 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -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 {