mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-08 23:58:42 +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();
|
$name = secure_random_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = DIRECTORY_SEPARATOR.
|
/*$file = DIRECTORY_SEPARATOR.
|
||||||
trim(sys_get_temp_dir(), DIRECTORY_SEPARATOR).
|
trim(sys_get_temp_dir(), DIRECTORY_SEPARATOR).
|
||||||
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);
|
file_put_contents($file, $content);
|
||||||
|
|
||||||
|
@ -431,7 +431,8 @@ switch (post('op')) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'export-csv':
|
case 'export-csv':
|
||||||
$file = temp_file();
|
$file = temp_file().'.csv';
|
||||||
|
|
||||||
$exporter = new CSV($file);
|
$exporter = new CSV($file);
|
||||||
|
|
||||||
// Esportazione dei record selezionati
|
// Esportazione dei record selezionati
|
||||||
|
Loading…
x
Reference in New Issue
Block a user