Skip to content
Snippets Groups Projects

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

Merged Fix #664: Missed changes of Alert pre-requisite for CSV import ahead than silent failure
Merged Satish requested to merge satish.dvnk/vtigercrm:prega into master
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
  • 7f3b17b6
    Fix #664: Missed changes of Alert pre-requisite for CSV import ahead than silent failure · 7f3b17b6
    Satish authored
    Fixed default csv selection import
@@ -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');
}
Loading