Commit bd2fda33 authored by Carsten  Rose's avatar Carsten Rose
Browse files

File not found in FE.type=file: Show more clearly that the pathfilename is...

File not found in FE.type=file: Show more clearly that the pathfilename is only shown when ShowDebugInfo=on.
parent ba629c47
Pipeline #1266 passed with stage
in 1 minute and 55 seconds
......@@ -3086,11 +3086,13 @@ abstract class AbstractBuildForm {
$link = new Link($this->sip, $this->dbIndexData);
$value = $link->renderLink('s|M:file|d|F:' . $value . '|' . $this->evaluate->parse($formElement[FE_FILE_DOWNLOAD_BUTTON]));
} else {
$msg = "Already uploaded file not found";
// In case debugging is off: showing download button means 'never show the real pathfilename'
if (!$this->showDebugInfoFlag) {
$value = '';
if ($this->showDebugInfoFlag) {
$msg .= ' ShowDebugInfo=on >> Missing file is: ' . $value;
}
$value .= " - file not found, please check field 'value'";
$value = $msg;
}
}
......
Supports Markdown
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