Skip to content
Snippets Groups Projects
Commit 7f3b17b6 authored by Satish's avatar Satish
Browse files

Fix #664: Missed changes of Alert pre-requisite for CSV import ahead than silent failure

Fixed default csv selection import
parent 40bf0985
No related branches found
No related tags found
2 merge requests!311Language italian translation,!288Fix #664: Missed changes of Alert pre-requisite for CSV import ahead than silent failure
......@@ -129,6 +129,13 @@ class Vtiger_Import_View extends Vtiger_Index_View {
}
//End
$fileFormat = $request->get('fileFormat');
if (!$fileFormat || !in_array($fileFormat, $supportedFileTypes)) {
$fileFormat = 'csv';
} else {
$fileFormat = strtolower($fileFormat);
}
// Pre-conditional check for CSV import.
if ($fileFormat == 'csv') {
$isLocalInfileEnabled = Vtiger_Util_Helper::checkDbLocalInfileSupport();
......@@ -146,7 +153,7 @@ class Vtiger_Import_View extends Vtiger_Index_View {
$viewer->assign('CURRENCIES', getAllCurrencies());
}
$viewer->assign('FORMAT', $request->get('fileFormat'));
$viewer->assign('FORMAT', $fileFormat);
return $viewer->view('ImportBasicStep.tpl', 'Import');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment