Commit fe882676 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 139588: changes "size" to "maxlength" in abbreviations hash since…

Fix for bug 139588: changes "size" to "maxlength" in abbreviations hash since "size" is a hash built-in method in Template Toolkit 2.07 Patch by Gerv <gerv@gerv.net> r=ddk,myk
parent f660ec1c
...@@ -31,20 +31,20 @@ ...@@ -31,20 +31,20 @@
#%] #%]
[% abbrev = [% abbrev =
{ {
"severity" => { size => 3 , title => "Sev" } , "severity" => { maxlength => 3 , title => "Sev" } ,
"priority" => { size => 3 , title => "Pri" } , "priority" => { maxlength => 3 , title => "Pri" } ,
"platform" => { size => 3 , title => "Plt" } , "platform" => { maxlength => 3 , title => "Plt" } ,
"status" => { size => 4 } , "status" => { maxlength => 4 } ,
"reporter" => { size => 45 , ellipsis => "..." } , "reporter" => { maxlength => 45 , ellipsis => "..." } ,
"owner" => { size => 45 , ellipsis => "..." } , "owner" => { maxlength => 45 , ellipsis => "..." } ,
"qa_contact" => { size => 45 , ellipsis => "..." , title => "QAContact" } , "qa_contact" => { maxlength => 45 , ellipsis => "..." , title => "QAContact" } ,
"resolution" => { size => 4 } , "resolution" => { maxlength => 4 } ,
"summary" => { size => 60 , ellipsis => "..." } , "summary" => { maxlength => 60 , ellipsis => "..." } ,
"status_whiteboard" => { title => "StatusSummary" } , "status_whiteboard" => { title => "StatusSummary" } ,
"component" => { size => 8 , title => "Comp" } , "component" => { maxlength => 8 , title => "Comp" } ,
"product" => { size => 8 } , "product" => { maxlength => 8 } ,
"version" => { size => 5 , title => "Vers" } , "version" => { maxlength => 5 , title => "Vers" } ,
"os" => { size => 4 } , "os" => { maxlength => 4 } ,
"target_milestone" => { title => "TargetM" } , "target_milestone" => { title => "TargetM" } ,
} }
%] %]
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
[% FOREACH column = displaycolumns %] [% FOREACH column = displaycolumns %]
<td> <td>
[%+ bug.$column.truncate(abbrev.$column.size, abbrev.$column.ellipsis) FILTER html %] [%+ bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html %]
</td> </td>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment