Commit 400b2182d3b64afd210a3ed0363f1360dd27f833

Authored by jalaloedien
1 parent a3fc344a

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
templates/kt3/fieldsets/generic.smarty
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <table class="metadatatable" cellspacing="0" cellpadding="5"> 8 <table class="metadatatable" cellspacing="0" cellpadding="5">
9 <tr class="even first"> 9 <tr class="even first">
10 <th>{i18n}Document Filename{/i18n}</th> 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 </tr> 12 </tr>
13 13
14 <tr class="odd"> 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 {if ($document->getIsCheckedOut() == 1)} 3 {if ($document->getIsCheckedOut() == 1)}
4 {capture assign=checkout_user}<strong>{$sCheckoutUser}</strong>{/capture} 4 {capture assign=checkout_user}<strong>{$sCheckoutUser}</strong>{/capture}