Commit 8da97a0d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug #5048 / Default value NULL in pathFileName breaks uploads.

parent ccb5222a
......@@ -333,8 +333,9 @@ class Save {
$pathFileName = $this->doUpload($formElement, $formValues[$column], $sip, $modeUpload);
// Upload Type: Simple or Advanced
if (isset($primaryRecord[$column])) {
// 'Simple Upload': no special action needed, just process the current (maybe modifired) value.
// If (isset($primaryRecord[$column])) { - see #5048 - isset does not deal correctly with NULL!
if (array_key_exists($column, $primaryRecord)) {
// 'Simple Upload': no special action needed, just process the current (maybe modified) value.
if ($pathFileName !== false) {
$newValues[$column] = $pathFileName;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment