Skip to content

Commit

Permalink
Ensure smarty variable editSmartGroupURL is always defined on group edit
Browse files Browse the repository at this point in the history
  • Loading branch information
braders committed Sep 25, 2022
1 parent 17f2c5a commit ba23b1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Group/Form/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ba23b1e

Please sign in to comment.