Commit 013d7f61 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fix problem in upload elements: a) in exception FE_ID was not reported, b)...

Fix problem in upload elements: a) in exception FE_ID was not reported, b) fillStoreVar was not fired.
parent bde024ac
...@@ -349,14 +349,16 @@ class Save { ...@@ -349,14 +349,16 @@ class Save {
continue; continue;
} }
// Preparation for Log, Debug
$this->store->setVar(SYSTEM_FORM_ELEMENT, Logger::formatFormElementName($formElement), STORE_SYSTEM);
$this->store->setVar(SYSTEM_FORM_ELEMENT_ID, $formElement[FE_ID], STORE_SYSTEM);
$formElement = HelperFormElement::initUploadFormElement($formElement); $formElement = HelperFormElement::initUploadFormElement($formElement);
if (isset($formElement[FE_FILL_STORE_VAR])) { if (isset($formElement[FE_FILL_STORE_VAR])) {
$formElement[FE_FILL_STORE_VAR] = $this->evaluate->parse($formElement[FE_FILL_STORE_VAR], ROW_EXPECT_0_1);
$this->store->appendToStore($formElement[FE_FILL_STORE_VAR], STORE_VAR); $this->store->appendToStore($formElement[FE_FILL_STORE_VAR], STORE_VAR);
} }
// Preparation for Log, Debug
$this->store->setVar(SYSTEM_FORM_ELEMENT, Logger::formatFormElementName($formElement), STORE_SYSTEM);
$column = $formElement[FE_NAME]; $column = $formElement[FE_NAME];
$pathFileName = $this->doUpload($formElement, $formValues[$column], $sip, $modeUpload); $pathFileName = $this->doUpload($formElement, $formValues[$column], $sip, $modeUpload);
......
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