diff --git a/extension/qfq/qfq/AbstractBuildForm.php b/extension/qfq/qfq/AbstractBuildForm.php index 88910c5c8c9724beece6c72533a7d1ad0352feb5..7bffa0047791e52ce50b9c12af2ef97f05bec77e 100644 --- a/extension/qfq/qfq/AbstractBuildForm.php +++ b/extension/qfq/qfq/AbstractBuildForm.php @@ -756,7 +756,10 @@ abstract class AbstractBuildForm { if (count($formElement) < 20) throw new CodeException("Invalid (none or to small) Formelement", ERROR_MISSING_FORMELEMENT); - $itemValue = $this->getItemsForEnumOrSet($formElement['name'], $fieldType); + // 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) {