Ticket #5255: vtiger-504-import-records.patch
| File vtiger-504-import-records.patch, 1.7 kB (added by prasad, 1 year ago) |
|---|
-
modules/Import/ImportStep3.php
old new 178 178 179 179 $ret_value = 0; 180 180 181 // Save the file for name for next round of import 182 // http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5255 183 if(isset($_REQUEST['tmp_file'])) { 184 $_SESSION['tmp_file'] = $_REQUEST['tmp_file']; 185 } else { 186 $_REQUEST['tmp_file'] = $_SESSION['tmp_file']; 187 } 188 // End 189 181 190 if ($_REQUEST['source'] == 'act') 182 191 { 183 192 $ret_value = parse_import_act($_REQUEST['tmp_file'],$delimiter,$max_lines,$has_header); … … 187 196 $ret_value = parse_import($_REQUEST['tmp_file'],$delimiter,$max_lines,$has_header); 188 197 } 189 198 199 // We should delete the data file only in the last step of import 200 /* http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5255 190 201 if (file_exists($_REQUEST['tmp_file'])) 191 202 { 192 203 unlink($_REQUEST['tmp_file']); 193 204 } 205 */ 194 206 195 207 $datarows = $ret_value['rows']; 196 208 -
modules/Import/ImportSteplast.php
old new 56 56 $_REQUEST['return_action'] = ''; 57 57 } 58 58 59 // Delete data file used for import 60 // http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5255 61 if(isset($_REQUEST['tmp_file'])) { 62 $tmp_file = $_REQUEST['tmp_file']; 63 } else if(isset($_SESSION['tmp_file'])) { 64 $tmp_file = $_SESSION['tmp_file']; 65 } 66 if(isset($tmp_file) && file_exists($tmp_file)) unlink($tmp_file); 67 // End 68 69 59 70 global $theme; 60 71 $theme_path="themes/".$theme."/"; 61 72 $image_path=$theme_path."images/";
