From 425ab64a445287bac3ac5a41daace3e75ab5adb9 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 23 Aug 2022 16:31:06 +1200 Subject: [PATCH] Remove unnecessary assign --- CRM/Import/Forms.php | 2 +- CRM/Member/Import/Form/MapField.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Import/Forms.php b/CRM/Import/Forms.php index 83259b2766..d876356f0f 100644 --- a/CRM/Import/Forms.php +++ b/CRM/Import/Forms.php @@ -654,7 +654,7 @@ class CRM_Import_Forms extends CRM_Core_Form { * @throws \CRM_Core_Exception */ protected function assignMapFieldVariables(): void { - $this->addExpectedSmartyVariable('highlightedRelFields'); + $this->addExpectedSmartyVariables(['highlightedRelFields', 'initHideBoxes']); $this->_columnCount = $this->getNumberOfColumns(); $this->_columnNames = $this->getColumnHeaders(); $this->_dataValues = array_values($this->getDataRows([], 2)); diff --git a/CRM/Member/Import/Form/MapField.php b/CRM/Member/Import/Form/MapField.php index 108b4e17ea..50b4b134bd 100644 --- a/CRM/Member/Import/Form/MapField.php +++ b/CRM/Member/Import/Form/MapField.php @@ -33,7 +33,6 @@ class CRM_Member_Import_Form_MapField extends CRM_Import_Form_MapField { foreach ($this->getColumnHeaders() as $i => $columnHeader) { $this->add('select2', "mapper[$i]", ts('Mapper for Field %1', [1 => $i]), $options, FALSE, ['class' => 'big', 'placeholder' => ts('- do not import -')]); } - $this->assign('initHideBoxes'); $this->setDefaults($this->getDefaults()); -- 2.25.1