[Rt-devel] RT 3.4.0 Contribution

Jesse Vincent jesse at bestpractical.com
Fri Feb 11 11:35:10 EST 2005


Thanks. I should be able to sneak this into 3.4.1


On Fri, Feb 11, 2005 at 11:32:19AM -0500, Stephen Turner wrote:
> Hello,
> 
> Would you consider this small contribution? When displaying a binary custom 
> field, RT displays the file name only. This patch adds a link so that the 
> file contents can be displayed.
> 
> Thanks,
> Steve
> 
> PART 1 (modification):
> 
> --- /var/rt3/share/html/Elements/ShowCustomFields       Tue Feb  1 09:20:40 
> 2005
> +++ ShowCustomFields    Fri Feb 11 11:17:36 2005
> @@ -55,6 +55,8 @@
>  <li>
>  %   if ($CustomField->Type eq 'Image') {
>  <& ShowCustomFieldImage, Object => $Value &>
> +%   } elsif ($CustomField->Type eq 'Binary') {
> +<& ShowCustomFieldBinary, Object => $Value &>
>  %   } else {
>  <%$Value->Content%>
>  %   }
> 
> 
> PART 2 (New file ShowCustomFieldBinary in /html/Elements):
> 
> %    my $url = $RT::WebPath . 
> "/Download/CustomFieldValue/".$Object->Id.'/'.$Object->Content;
> <a href="<% $url %>"><% $Object->Content %></a>
> <%ARGS>
> $Object
> </%ARGS>
> 
> 
> 
> 
> Stephen Turner
> Senior Programmer/Analyst - Client Support Services
> MIT Information Services and Technology (IS&T)
> 
> sturner at mit.edu
> 
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> 

-- 


More information about the Rt-devel mailing list