Commit 6e34f5f432958a5c1546123cb262abae5821d15e
1 parent
f46fbb7c
Modified output on Document Details page to not encode html for HTML type metada…
…ta fields so that they now show as proper html instead of seeing the code for the html KTC-814: A Large Text field displays the HTML tags in the document details for a document. Committed by: Paul Barrett Reviewed by: Megan Watson
Showing
1 changed file
with
11 additions
and
2 deletions
templates/kt3/fieldsets/simple.smarty
| @@ -8,8 +8,17 @@ | @@ -8,8 +8,17 @@ | ||
| 8 | {foreach item=aFieldPair from=$fieldset_values name=fields} | 8 | {foreach item=aFieldPair from=$fieldset_values name=fields} |
| 9 | <tr class="{cycle values=even,odd} {if $smarty.foreach.fields.first}first{/if}"> | 9 | <tr class="{cycle values=even,odd} {if $smarty.foreach.fields.first}first{/if}"> |
| 10 | <th>{$aFieldPair.field->getName()}</th> | 10 | <th>{$aFieldPair.field->getName()}</th> |
| 11 | - <td>{if ($aFieldPair.value !== null)}{$aFieldPair.value|sanitize} | ||
| 12 | - {else}<span class="descriptiveText">{i18n}no value{/i18n}</span>{/if}</td> | 11 | + <td> |
| 12 | + {if ($aFieldPair.value !== null)} | ||
| 13 | + {if ($aFieldPair.field->getIsHTML())} | ||
| 14 | + {$aFieldPair.value} | ||
| 15 | + {else} | ||
| 16 | + {$aFieldPair.value|sanitize} | ||
| 17 | + {/if} | ||
| 18 | + {else} | ||
| 19 | + <span class="descriptiveText">{i18n}no value{/i18n}</span> | ||
| 20 | + {/if} | ||
| 21 | + </td> | ||
| 13 | </tr> | 22 | </tr> |
| 14 | {/foreach} | 23 | {/foreach} |
| 15 | </table> | 24 | </table> |