From: Pradeep Nayak Date: Mon, 4 Feb 2019 18:43:24 +0000 (+0000) Subject: Donot show group until refresh result X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=db1a2573c062fb1051f190dddf2d72a05b03c911;p=civicrm-core.git Donot show group until refresh result --- diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index a69e37d51e..56918510d2 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -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'),