Donot show group until refresh result
authorPradeep Nayak <pradpnayak@gmail.com>
Mon, 4 Feb 2019 18:43:24 +0000 (18:43 +0000)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 4 Feb 2019 18:43:24 +0000 (18:43 +0000)
CRM/Report/Form.php

index a69e37d51e9e60a2ce780d6c0e7133a1e4286276..56918510d214b33887d6c1be639c44fbdaadb4ca 100644 (file)
@@ -1577,7 +1577,7 @@ class CRM_Report_Form extends CRM_Core_Form {
 
     // CRM-16274 Determine if user has 'edit all contacts' or equivalent
     $permission = CRM_Core_Permission::getPermission();
-    if ($permission == CRM_Core_Permission::EDIT &&
+    if ($this->_instanceForm && $permission == CRM_Core_Permission::EDIT &&
       $this->_add2groupSupported
     ) {
       $this->addElement('select', 'groups', ts('Group'),