* The initializer code, called before processing.
*/
public function init() {
+ // Force re-load of user job.
+ unset($this->userJob);
$this->setFieldMetadata();
foreach ($this->getImportableFieldsMetadata() as $name => $field) {
$this->addField($name, $field['title'], CRM_Utils_Array::value('type', $field), CRM_Utils_Array::value('headerPattern', $field), CRM_Utils_Array::value('dataPattern', $field), CRM_Utils_Array::value('hasLocationType', $field));
foreach ($columnHeaders as $i => $columnHeader) {
$sel = &$this->addElement('hierselect', "mapper[$i]", ts('Mapper for Field %1', array(1 => $i)), NULL);
$jsSet = FALSE;
- if ($this->get('savedMapping')) {
+ if ($this->getSubmittedValue('savedMapping')) {
if (isset($mappingName[$i])) {
if ($mappingName[$i] != ts('do_not_import')) {
//When locationType is not set
* @return void
*/
public function init() {
+ // Force re-load of user job.
+ unset($this->userJob);
$this->setFieldMetadata();
$this->_newMemberships = [];