From 1e1739668e3f3c970479a157290e57c6ef44bb87 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 22 Jun 2016 10:20:33 +0200 Subject: [PATCH] * ImportExport: fix PHP Fatal in import wizard in minimal install --- ...portexport_wizard_basic_import_csv.inc.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php b/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php index cd7dfa37f3..c569a439bd 100644 --- a/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php +++ b/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php @@ -36,14 +36,14 @@ class importexport_wizard_basic_import_csv 'wizard_step50' => 'importexport.wizard_basic_import_csv.fieldmapping', 'wizard_step55' => 'importexport.wizard_basic_import_csv.conditions' ); - + /** * Destination fields for the mapping * Key is the field name, value is the human version */ protected $mapping_fields = array(); - + /** * List of conditions your plugin supports */ @@ -81,7 +81,7 @@ class importexport_wizard_basic_import_csv case 'next': // Move sample file to temp if($content['file']['tmp_name']) { - $GLOBALS['egw']->session->appsession('csvfile',$content['application'],$content['file']['tmp_name']); + Api\Cache::setSession($content['application'], 'csvfile', $content['file']['tmp_name']); } unset($content['file']); return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'],1); @@ -100,12 +100,12 @@ class importexport_wizard_basic_import_csv $content['step'] = 'wizard_step30'; $preserv = $content; unset ($preserv['button']); - + return $this->step_templates[$content['step']]; } - + } - + /** * choose fieldseperator, charset and headerline * @@ -259,9 +259,9 @@ class importexport_wizard_basic_import_csv unset ($preserv['button']); return $this->step_templates[$content['step']]; } - + } - + /** * Process the sample file, get the fields out of it, then allow them to be mapped onto * the fields the destination understands. Also, set any translations to be done to the field. @@ -340,13 +340,13 @@ class importexport_wizard_basic_import_csv } $preserv = $content; $sel_options['field'] = array('--NONE--' => lang('none')) + $this->mapping_fields; - + unset ($preserv['button']); return $this->step_templates[$content['step']]; } - + } - + /** * Edit conditions */