Commit a9a6b4f18a3bf8e11ce657fb8f928a4212d87005
1 parent
5945bb0f
KTS-1539
"A document title containing random special characters causes the truncation to shorten the title length to 24 characters instead of the specified 40 characters. " Fixed. Reviewed By: Kevin git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6304 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
2 additions
and
2 deletions
templates/kt3/fieldsets/generic.smarty
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | <table class="metadatatable" cellspacing="0" cellpadding="5"> |
| 9 | 9 | <tr class="even first"> |
| 10 | 10 | <th>{i18n}Document Filename{/i18n}</th> |
| 11 | - <td>{$filename} ({$context->_sizeHelper($document->getSize())})</td> | |
| 11 | + <td>{$filename|wordwrap:40:"\n":true} ({$context->_sizeHelper($document->getSize())})</td> | |
| 12 | 12 | </tr> |
| 13 | 13 | |
| 14 | 14 | <tr class="odd"> | ... | ... |
templates/ktcore/document/view.smarty
| 1 | -<h2><img src="{$rootUrl}/resources/graphics/title_bullet.png"/>{$document->getName()|escape|truncate:40:"..."}</h2> | |
| 1 | +<h2><img src="{$rootUrl}/resources/graphics/title_bullet.png"/>{$document->getName()|escape|wordwrap:40:"\n":true}</h2> | |
| 2 | 2 | |
| 3 | 3 | {if ($document->getIsCheckedOut() == 1)} |
| 4 | 4 | {capture assign=checkout_user}<strong>{$sCheckoutUser}</strong>{/capture} | ... | ... |