}
$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())));
{include file=$fieldSpec.template}
{else}
<td class="label">{$form.$fieldName.label}
- {if !empty($fieldSpec.help)}{assign var=help value=$fieldSpec.help}{capture assign=helpFile}{if $fieldSpec.help}
- {$fieldSpec.help}
- {else}''{/if}
- {/capture}{help id=$help.id file=$help.file}{/if}
+ {if !empty($fieldSpec.help|smarty:nodefaults)}{assign var=help value=$fieldSpec.help}{help id=$help.id file=$help.file}{/if}
{if $action == 2 && !empty($fieldSpec.is_add_translate_dialog)}{include file='CRM/Core/I18n/Dialog.tpl' table=$entityTable field=$fieldName id=$entityID}{/if}
</td>
<td>{if !empty($fieldSpec.pre_html_text)}{$fieldSpec.pre_html_text}{/if}{if $form.$fieldName.html}{$form.$fieldName.html}{else}{$fieldSpec.place_holder}{/if}{if !empty($fieldSpec.post_html_text)}{$fieldSpec.post_html_text}{/if}<br />