Import Summary - Update to match final schema ('UserJob.job_type')
authorTim Otten <totten@civicrm.org>
Wed, 29 Jun 2022 08:07:41 +0000 (01:07 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 29 Jun 2022 08:07:41 +0000 (01:07 -0700)
eg When running "Import Activities", the page-title for the summary is incorrect.

CRM/Contact/Import/Form/Summary.php

index 397e3e935bed33bc771752a488c8f12e3a87f99b..d8efd8ab365e91f011b471271d82ed673e5c6f84 100644 (file)
@@ -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);