From ba23b1e37f619311dee4875625e9ca63fe3a0827 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 25 Sep 2022 17:26:56 +0100 Subject: [PATCH] Ensure smarty variable editSmartGroupURL is always defined on group edit --- CRM/Group/Form/Edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Group/Form/Edit.php b/CRM/Group/Form/Edit.php index e9338fb2d019..5dba42de70b6 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -93,7 +93,10 @@ public function getDefaultEntity() { */ public function preProcess() { $this->addOptionalQuickFormElement('parents'); - $this->addExpectedSmartyVariable('parent_groups'); + $this->addExpectedSmartyVariables([ + 'parent_groups', + 'editSmartGroupURL' + ]); $this->_id = $this->get('id'); if ($this->_id) { $breadCrumb = array(