-- fix for CRM-9069
authorRavish Nair <ravish.nair@webaccess.co.in>
Fri, 26 Apr 2013 08:11:29 +0000 (13:41 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Fri, 26 Apr 2013 08:11:29 +0000 (13:41 +0530)
CRM/UF/Form/Group.php
templates/CRM/UF/Form/Group.tpl

index 464cbceb706d20bcba2cfd7e97eb75897ee36671..d24caa9a03b46bd82eae2b0e95acc840f8da0449 100644 (file)
@@ -72,9 +72,13 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
     $this->assign('gid', $this->_id);
     $this->_group = CRM_Core_PseudoConstant::group();
 
+    if ($this->_action & (CRM_Core_Action::UPDATE | CRM_Core_Action::DELETE)) {
+      $title = CRM_Core_BAO_UFGroup::getTitle($this->_id);
+      $this->assign('profileTitle', $title);
+    }
+
     // setting title for html page
     if ($this->_action & CRM_Core_Action::UPDATE) {
-      $title = CRM_Core_BAO_UFGroup::getTitle($this->_id);
       CRM_Utils_System::setTitle(ts('Profile Settings') . " - $title");
     }
     elseif ($this->_action & (CRM_Core_Action::DISABLE | CRM_Core_Action::DELETE)) {
index 0642852bb3576ef537da1a69222d017de8605dda..c5714e7a3a96f931b7085736cc4c879d15835467 100644 (file)
@@ -25,7 +25,7 @@
 *}
 {* add/update/view CiviCRM Profile *}
 {if $action eq 8}
- <h3> {ts}Delete CiviCRM Profile{/ts}</h3>
+ <h3> {ts}Delete CiviCRM Profile{/ts} - {$profileTitle}</h3>
 {/if}
 <div class=" crm-block crm-form-block crm-uf_group-form-block">
 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>