[rt-users] Customfields question
Richard Pijnenburg
Richard at widexs.nl
Wed Nov 25 05:15:44 EST 2009
Hi Emmanuel,
It works perfect :-)
Thanks a lot.
--
Another quick question.
It would be handy for the departments to have different categories in
the queues so I can group them in a way.
For example with our support department I have 3 queues: Support,
Windows, Linux.
These 3 can be in a group Support
For our administration department I have other queues and those I want
under a group Administration.
Is there already a modification for this?
Met vriendelijke groet / With kind regards,
Richard Pijnenburg
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Emmanuel
Lacour
Sent: Wednesday, November 25, 2009 11:04 AM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Customfields question
On Wed, Nov 25, 2009 at 10:46:18AM +0100, Richard Pijnenburg wrote:
> Hi Emmanuel,
>
> I found that file yeah.
> It's only unclear what code I need to make the filter for it.
> Unfortunate my coding experience is more in php then perl :-)
>
try something like this (not tested):
diff --git a/share/html/Elements/ShowCustomFields
b/share/html/Elements/ShowCustomFields
index ddb8b72..ad8869d 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -83,7 +83,7 @@ $m->callback(
my $print_value = sub {
my ($cf, $value) = @_;
my $linked = $cf->LinkValueTo;
- if ( $linked ) {
+ if ( $linked && $m->request_comp->path !~ m|/SelfService/| ) {
$m->out('<a href="'. $value->LinkValueTo .'" target="_new">');
}
my $comp = "ShowCustomField". $cf->Type;
@@ -98,7 +98,7 @@ my $print_value = sub {
} else {
$m->out( $m->interp->apply_escapes( $value->Content, 'h' ) );
}
- $m->out('</a>') if $linked;
+ $m->out('</a>') if ( $linked && $m->request_comp->path !~
m|/SelfService/| );
# This section automatically populates a div with the
"IncludeContentForValue" for this custom
# field if it's been defined
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: sales at bestpractical.com
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
More information about the rt-users
mailing list