From c78fdefd1cf2c54ef464bd2229b94200c13d3c7a Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 29 Jun 2022 01:07:41 -0700 Subject: [PATCH] Import Summary - Update to match final schema ('UserJob.job_type') eg When running "Import Activities", the page-title for the summary is incorrect. --- CRM/Contact/Import/Form/Summary.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Import/Form/Summary.php b/CRM/Contact/Import/Form/Summary.php index 397e3e935b..d8efd8ab36 100644 --- a/CRM/Contact/Import/Form/Summary.php +++ b/CRM/Contact/Import/Form/Summary.php @@ -30,8 +30,8 @@ class CRM_Contact_Import_Form_Summary extends CRM_Import_Form_Summary { */ public function preProcess() { $userJobID = CRM_Utils_Request::retrieve('user_job_id', 'String', $this, TRUE); - $userJob = UserJob::get(TRUE)->addWhere('id', '=', $userJobID)->addSelect('metadata', 'type_id:label')->execute()->first(); - $this->setTitle($userJob['type_id:label']); + $userJob = UserJob::get(TRUE)->addWhere('id', '=', $userJobID)->addSelect('metadata', 'job_type:label')->execute()->first(); + $this->setTitle($userJob['job_type:label']); $onDuplicate = $userJob['metadata']['submitted_values']['onDuplicate']; $this->assign('dupeError', FALSE); -- 2.25.1