Merge pull request #584 from yashodha/CRM-12463
[civicrm-core.git] / CRM / UF / Form / Group.php
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)) {