Use submittedValues for usps
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 12 May 2022 00:37:37 +0000 (12:37 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 12 May 2022 00:37:37 +0000 (12:37 +1200)
CRM/Contact/Import/Form/MapField.php
CRM/Contact/Import/Form/Preview.php
CRM/Contact/Import/Form/Summary.php

index ed3f59b933fb06ed1ea35c324b19b3bcddb72cc5..fb5e8c0126500041eaf90f73e654580530fc0785 100644 (file)
@@ -111,7 +111,6 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
     $this->_columnCount = $this->getNumberOfColumns();
     $this->_columnNames = $columnNames;
     $this->assign('columnNames', $this->getColumnHeaders());
-    //$this->_columnCount = $this->get( 'columnCount' );
     $this->assign('columnCount', $this->_columnCount);
     $this->_dataValues = array_values($this->getDataRows([], 2));
     $this->assign('dataValues', $this->_dataValues);
index 56ab74e7eb9e35cd1da60b0a80bee554f51e0462..f51f2b54051ac2d379b52ac053a151a4dc762c71 100644 (file)
@@ -34,8 +34,8 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview {
    * @throws \CRM_Core_Exception
    */
   public function preProcess() {
-    $columnNames = $this->get('columnNames');
-    $this->_disableUSPS = $this->get('disableUSPS');
+    $columnNames = $this->getColumnHeaders();
+    $this->_disableUSPS = $this->getSubmittedValue('disableUSPS');
 
     //assign column names
     $this->assign('columnNames', $columnNames);
index d82ace038cc37271044120c611d5c2c846dbe583..8edea24325ad4476ee5724c01962884958c825ce 100644 (file)
@@ -29,7 +29,7 @@ class CRM_Contact_Import_Form_Summary extends CRM_Import_Form_Summary {
   public function preProcess() {
     // set the error message path to display
     $this->assign('errorFile', $this->get('errorFile'));
-    $onDuplicate = $this->get('onDuplicate');
+    $onDuplicate = $this->getSubmittedValue('onDuplicate');
     $this->assign('dupeError', FALSE);
 
     if ($onDuplicate == CRM_Import_Parser::DUPLICATE_UPDATE) {