projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set default WillResolve dates on all tickets, #23309
[freeside.git]
/
rt
/
lib
/
RT
/
Ticket.pm
diff --git
a/rt/lib/RT/Ticket.pm
b/rt/lib/RT/Ticket.pm
index
4da1d48
..
6165378
100755
(executable)
--- a/
rt/lib/RT/Ticket.pm
+++ b/
rt/lib/RT/Ticket.pm
@@
-255,6
+255,7
@@
sub Create {
Starts => undef,
Started => undef,
Resolved => undef,
Starts => undef,
Started => undef,
Resolved => undef,
+ WillResolve => undef,
MIMEObj => undef,
_RecordTransaction => 1,
DryRun => 0,
MIMEObj => undef,
_RecordTransaction => 1,
DryRun => 0,
@@
-357,6
+358,11
@@
sub Create {
$Started->Set( Format => 'ISO', Value => $args{'Started'} );
}
$Started->Set( Format => 'ISO', Value => $args{'Started'} );
}
+ my $WillResolve = RT::Date->new($self->CurrentUser );
+ if ( defined $args{'WillResolve'} ) {
+ $WillResolve->Set( Format => 'ISO', Value => $args{'WillResolve'} );
+ }
+
# If the status is not an initial status, set the started date
elsif ( !$cycle->IsInitial($args{'Status'}) ) {
$Started->SetToNow;
# If the status is not an initial status, set the started date
elsif ( !$cycle->IsInitial($args{'Status'}) ) {
$Started->SetToNow;
@@
-483,6
+489,7
@@
sub Create {
Starts => $Starts->ISO,
Started => $Started->ISO,
Resolved => $Resolved->ISO,
Starts => $Starts->ISO,
Started => $Started->ISO,
Resolved => $Resolved->ISO,
+ WillResolve => $WillResolve->ISO,
Due => $Due->ISO
);
Due => $Due->ISO
);