Commit 9d44e70b authored by bbaer's avatar bbaer
Browse files

Merge remote-tracking branch 'origin/F7783FormElementCodeAnnotation' into...

Merge remote-tracking branch 'origin/F7783FormElementCodeAnnotation' into F7783FormElementCodeAnnotation
parents fd7faeb3 c4d41638
Pipeline #1453 passed with stage
in 2 minutes and 14 seconds
......@@ -3169,9 +3169,9 @@ abstract class AbstractBuildForm {
throw new UserFormException("Missing parameter '" . FE_TEXT_SOURCE . "'", ERROR_IO_READ_FILE);
}
if ($formElement[FE_TEXT_SOURCE] != '' && !is_readable($formElement[FE_TEXT_SOURCE])) {
throw new UserFormException("Error reading file: " . $formElement[FE_TEXT_SOURCE], ERROR_IO_READ_FILE);
}
# if ($formElement[FE_TEXT_SOURCE] != '' && !is_readable($formElement[FE_TEXT_SOURCE])) {
# throw new UserFormException("Error reading file: " . $formElement[FE_TEXT_SOURCE], ERROR_IO_READ_FILE);
# }
if (!empty($value) && json_decode($value) === null) {
throw new UserFormException("Annotate data: JSON structure not valid", ERROR_BROKEN_JSON_STRUCTURE);
......
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