Merge pull request #22484 from civicrm/5.46
[civicrm-core.git] / CRM / Admin / Form / OptionGroup.php
index 2a5ec115a29ccf2bd3beacc86604b1409524335d..8cb2a62f5e4bfdf411895225f6bc56490d961db6 100644 (file)
  */
 class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
 
+  /**
+   * @var bool
+   */
+  public $submitOnce = TRUE;
+
   /**
    * Explicitly declare the entity api name.
    */
@@ -35,7 +40,7 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
     if ($this->_action & CRM_Core_Action::DELETE) {
       return;
     }
-    CRM_Utils_System::setTitle(ts('Dropdown Options'));
+    $this->setTitle(ts('Dropdown Options'));
 
     $this->applyFilter('__ALL__', 'trim');