From bf19074f3c168dc20c0969a35eb2cc848dffdadf Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 9 Dec 2023 12:24:44 +0000 Subject: [PATCH] [REF][PHP8.2] Tidy up use of properties in CRM_Campaign_Form_Task_Release --- CRM/Campaign/Form/Task/Release.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Campaign/Form/Task/Release.php b/CRM/Campaign/Form/Task/Release.php index ae17d3be8c..6f9b94468a 100644 --- a/CRM/Campaign/Form/Task/Release.php +++ b/CRM/Campaign/Form/Task/Release.php @@ -47,12 +47,12 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task { * Build all the data structures needed to build the form. */ public function preProcess() { - $this->_interviewToRelease = $this->get('interviewToRelease'); - if ($this->_interviewToRelease) { + $interviewToRelease = $this->get('interviewToRelease'); + if ($interviewToRelease) { //user came from interview form. - foreach (['surveyId', 'contactIds', 'interviewerId'] as $fld) { - $this->{"_$fld"} = $this->get($fld); - } + $this->_surveyId = $this->get('surveyId'); + $this->_contactIds = $this->get('contactIds'); + $this->_interviewerId = $this->get('interviewerId'); if (!empty($this->_contactIds)) { $this->assign('totalSelectedContacts', count($this->_contactIds)); -- 2.25.1