// remove file type field and then limit fields
$suppressFields = FALSE;
- $removehtmlTypes = array('File');
foreach ($this->_fields as $name => $field) {
- if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name) &&
- in_array($this->_fields[$name]['html_type'], $removehtmlTypes)
- ) {
+ if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name) && $this->_fields[$name]['html_type'] == 'Autocomplete-Select') {
$suppressFields = TRUE;
unset($this->_fields[$name]);
}
{/if}
</div>
{else}
- <div class="compressed crm-grid-cell">{$form.field.$rowNumber.$n.html}</div>
+ <div class="compressed crm-grid-cell">
+ {$form.field.$rowNumber.$n.html}
+ {if $fields.$n.html_type eq 'File' && !empty($form.field.$rowNumber.$fieldName.value.size)}
+ {ts}Attached{/ts}: {$form.field.$rowNumber.$fieldName.value.name}
+ {/if}
+ </div>
{/if}
{/foreach}
</div>