mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-23 04:19:59 +01:00
Fix export fatture csv
This commit is contained in:
parent
3ee8786159
commit
62bded2805
@ -544,10 +544,12 @@ if (!function_exists('temp_file')) {
|
||||
$name = secure_random_string();
|
||||
}
|
||||
|
||||
$file = DIRECTORY_SEPARATOR.
|
||||
/*$file = DIRECTORY_SEPARATOR.
|
||||
trim(sys_get_temp_dir(), DIRECTORY_SEPARATOR).
|
||||
DIRECTORY_SEPARATOR.
|
||||
ltrim($name, DIRECTORY_SEPARATOR);
|
||||
ltrim($name, DIRECTORY_SEPARATOR);*/
|
||||
|
||||
$file = implode(DIRECTORY_SEPARATOR, [base_dir(), 'files', 'temp', ltrim($name, DIRECTORY_SEPARATOR)]);
|
||||
|
||||
file_put_contents($file, $content);
|
||||
|
||||
|
@ -431,7 +431,8 @@ switch (post('op')) {
|
||||
break;
|
||||
|
||||
case 'export-csv':
|
||||
$file = temp_file();
|
||||
$file = temp_file().'.csv';
|
||||
|
||||
$exporter = new CSV($file);
|
||||
|
||||
// Esportazione dei record selezionati
|
||||
|
Loading…
Reference in New Issue
Block a user