CRM-13863 - Get rid of double title for forms that use popups
[civicrm-core.git] / CRM / Custom / Page / Field.php
index 0085da336878ab01b457c033d2c8d915bae34e9c..84507d68085838228f4008628cb4070091792833 100644 (file)
@@ -276,7 +276,9 @@ class CRM_Custom_Page_Field extends CRM_Core_Page {
       $groupTitle = CRM_Core_BAO_CustomGroup::getTitle($this->_gid);
       $this->assign('gid', $this->_gid);
       $this->assign('groupTitle', $groupTitle);
-      CRM_Utils_System::setTitle(ts('%1 - Custom Fields', array(1 => $groupTitle)));
+      if ($action & CRM_Core_Action::BROWSE) {
+        CRM_Utils_System::setTitle(ts('%1 - Custom Fields', array(1 => $groupTitle)));
+      }
     }
 
     // assign vars to templates