Merge pull request #21762 from jitendrapurohit/job-alert
[civicrm-core.git] / CRM / ACL / Form / EntityRole.php
index d12686fe433e15881fd1e98e6e850be399125e02..eaed454de8093c4dea08853350750a315f9f522d 100644 (file)
  */
 class CRM_ACL_Form_EntityRole extends CRM_Admin_Form {
 
+  /**
+   * @var bool
+   */
+  public $submitOnce = TRUE;
+
   /**
    * Build the form object.
    */
@@ -26,9 +31,8 @@ class CRM_ACL_Form_EntityRole extends CRM_Admin_Form {
       return;
     }
 
-    $aclRoles = ['' => ts('- select -')] + CRM_Core_OptionGroup::values('acl_role');
     $this->add('select', 'acl_role_id', ts('ACL Role'),
-      $aclRoles, TRUE
+      CRM_Core_OptionGroup::values('acl_role'), TRUE, ['placeholder' => TRUE]
     );
 
     $label = ts('Assigned to');