https://rt-wiki.bestpractical.com/index.php?title=ClipSubjectInTicketList&feed=atom&action=history
ClipSubjectInTicketList - Revision history
2024-03-29T08:18:11Z
Revision history for this page on the wiki
MediaWiki 1.37.2
https://rt-wiki.bestpractical.com/index.php?title=ClipSubjectInTicketList&diff=523&oldid=prev
Admin: 2 revisions imported
2016-04-06T20:03:25Z
<p>2 revisions imported</p>
<p><b>New page</b></p><div>The purpose of this patch is to take care of really-long-subject-lines-without-a-break that would otherwise cause the browser to display horizontal scrollbars.<br />
<br />
--- share/html/Elements/CollectionAsTable/Row 2004-08-31 00:22:49.000000000 -0400<br />
+++ local/html/Elements/CollectionAsTable/Row 2006-06-02 09:25:43.942609152 -0400<br />
@@ -51,6 +51,9 @@<br />
foreach my $subcol ( @{ $column-&gt;{output} } ) {<br />
if ( $subcol =~ /^__(.*?)__$/o ) {<br />
my $col = $1;<br />
+ if ($col =~ /Subject/) {<br />
+ $m-&gt;out ('&lt;div style="width:100%; overflow: hidden;"&gt;');<br />
+ }<br />
my $value = $m-&gt;comp('/Elements/RT__Ticket/ColumnMap', Name =&gt; $col, Attr =&gt; 'value');<br />
<br />
if ( $value &amp;&amp; ref($value)) {<br />
@@ -58,6 +61,9 @@<br />
} else {<br />
$m-&gt;out($value );<br />
}<br />
+ if ($col =~ /Subject/) {<br />
+ $m-&gt;out ('&lt;/div&gt;');<br />
+ }<br />
}<br />
else {<br />
$m-&gt;out( Encode::decode_utf8($subcol) );</div>
Admin