From 7beb23bd55acb237d073815e4676e8e2e8e33c06 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 e9338fb2d0..aacc3fc18a 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -93,7 +93,10 @@ class CRM_Group_Form_Edit extends CRM_Core_Form { */ 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( -- 2.25.1