}
$this->applyFilter('__ALL__', 'trim');
$this->addEntityFieldsToTemplate();
+ foreach ($this->entityFields as $index => $fields) {
+ $this->entityFields[$index] = array_merge([
+ 'template' => '',
+ 'help' => [],
+ 'pre_html_text' => '',
+ 'post_html_text' => '',
+ 'description' => '',
+ 'documentation_link' => '',
+ ], $fields);
+ }
$this->assign('entityFields', $this->entityFields);
$this->assign('entityID', $this->getEntityId());
$this->assign('entityInClassFormat', strtolower(str_replace('_', '-', $this->getDefaultEntity())));
if ($spec['localizable']) {
$this->entityFields[$fieldName]['is_add_translate_dialog'] = TRUE;
}
- if (empty($spec['html'])) {
+ if (empty($spec['html']['type'])) {
$this->entityFields[$fieldName]['not-auto-addable'] = TRUE;
}
}