Am 21.09.2012 13:01, schrieb Alex Young: > Is it possible to disable cloning of the time worked, time estimated, > timeleft, priority, owner etc when clicking the 'create' link on a > ticket without editing the Create.html page? > > I saw a patch was submitted for 3.8.x in 2009 to make this a > configurable option, but it looks like it didn't make it to RT4. >
I have recently done this for our RT 4.0.7 but with changing the Create.html. Attached an patch. You have to put this in etc/Site_Config.pm: Set(@SkipFieldsOnTicketClone, qw( Owner Priority TimeEstimated TimeWorked TimeLeft ) ); I will send this within the next days to BPS to maybe integrate this in RT 4.2. Chris
>From 53272e2154ad5c3b44580e569194473544cfe594 Mon Sep 17 00:00:00 2001 From: Christian Loos <cl...@netcologne.de> Date: Wed, 29 Aug 2012 16:30:37 +0200 Subject: [PATCH] new config option $SkipFieldsOnTicketClone --- html/Ticket/Create.html | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html/Ticket/Create.html b/html/Ticket/Create.html index f6ba2e6..5493685 100644 --- a/html/Ticket/Create.html +++ b/html/Ticket/Create.html @@ -346,8 +346,10 @@ if ($CloneTicket) { @cf_values; } - for ( keys %$clone ) { - $ARGS{$_} = $clone->{$_} if not defined $ARGS{$_}; + my @skip_fields = RT->Config->Get('SkipFieldsOnTicketClone'); + foreach my $field ( keys %$clone ) { + next if grep {$_ eq $field} @skip_fields; + $ARGS{$field} = $clone->{$field} if not defined $ARGS{$field}; } } -- 1.7.2.5
-------- Final RT training for 2012 in Atlanta, GA - October 23 & 24 http://bestpractical.com/training We're hiring! http://bestpractical.com/jobs