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

FE 'Select / Radio / Checkbox' crashed without a corresponding column.

AbstractBuildForm.php: check if there is a column with the formElementName.
parent 3feb3386
......@@ -756,7 +756,10 @@ abstract class AbstractBuildForm {
if (count($formElement) < 20)
throw new CodeException("Invalid (none or to small) Formelement", ERROR_MISSING_FORMELEMENT);
// Call getItemsForEnumOrSet() only if there a corresponding column really exist.
if (false !== $this->store->getVar($formElement['name'], STORE_RECORD)) {
$itemValue = $this->getItemsForEnumOrSet($formElement['name'], $fieldType);
}
if (is_array($formElement['sql1'])) {
if (count($formElement['sql1']) > 0) {
......
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