Skip to content
Snippets Groups Projects
Verified Commit 3a6c12a8 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FIX pb with empty values from MaarchCapture

parent ca16c651
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,11 @@ class StoreController ...@@ -37,6 +37,11 @@ class StoreController
'nature_id', 'alt_identifier', 'admission_date', 'process_limit_date', 'recommendation_limit_date', 'closing_date', 'address_id' 'nature_id', 'alt_identifier', 'admission_date', 'process_limit_date', 'recommendation_limit_date', 'closing_date', 'address_id'
]; ];
try { try {
foreach ($aArgs as $column => $value) {
if (empty($value)) {
unset($aArgs[$column]);
}
}
$fileContent = base64_decode(str_replace(['-', '_'], ['+', '/'], $aArgs['encodedFile'])); $fileContent = base64_decode(str_replace(['-', '_'], ['+', '/'], $aArgs['encodedFile']));
$fileName = 'tmp_file_' . rand() . '.' . $aArgs['format']; $fileName = 'tmp_file_' . rand() . '.' . $aArgs['format'];
$tmpFilepath = CoreConfigModel::getTmpPath() . $fileName; $tmpFilepath = CoreConfigModel::getTmpPath() . $fileName;
......
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