[rt-users] Question concerning ShowStatusInColor
Stephen Dowdy
sdowdy at ucar.edu
Thu Aug 4 16:43:43 EDT 2005
Nathan Oyler wrote:
> http://wiki.bestpractical.com/index.cgi?ShowStatusInColor
...
> The problem I have with it is that (pending approval) and (pending other
> Collection) show up with the <em></em> tags around them.
...
> So I was thinking I could remove the <em> tags entirely, but it seems
> useful to have the emphasis there.
>
> Does anyone know the reason why this happens? How I may correct this
> issue?
Nathan,
This works for me:
if ( $Ticket->HasUnresolvedDependencies ) {
if ( $Ticket->HasUnresolvedDependencies( Type => 'approval' )
or $Ticket->HasUnresolvedDependencies( Type => 'code' ) ) {
return \'<em>', loc('(pending approval)'), \'</em>';
} else {
return \'<em><font color=AA8000>', loc('(pending other
Collection)'), \'</font></em>';
}
} else {
return statusInColor($Ticket);
}
}
i.e. (line #'s may be off as my file has been edited elsewhere)
37c36
< return \'<em>', loc('(pending approval)'), \'</em>';
---
> return "<em>" . loc('(pending approval)') . "</em>";
39c38
< return \'<em><font color=AA8000>', loc('(pending other
Collection)'), \'</font></em>';
---
> return "<em>" . loc('(pending other Collection)') . "</em>";
--stephen
--
Stephen Dowdy - Systems Administrator - NCAR/RAP
303.497.2869 - sdowdy at ucar.edu - http://www.rap.ucar.edu/~sdowdy/
More information about the rt-users
mailing list