summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Action/EscalateQueue.pm
diff options
context:
space:
mode:
authorBrian Medley <bpm@snafu.org>2012-04-27 19:17:57 -0500
committerBrian Medley <bpm@snafu.org>2012-04-27 19:17:57 -0500
commit22dd966b4dac5e4146424cc7338abcf1264bc87d (patch)
tree9efeba3dc297c41d5bbc4b3621d5423a3b61ab62 /rt/lib/RT/Action/EscalateQueue.pm
parent8b524d97f3dea9084572103b26500377e3d8c65d (diff)
parent141c6ddb6daccb5546e35ba98131a30c4a64ee1d (diff)
Merge branch 'FREESIDE_2_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_2_3_BRANCH
Diffstat (limited to 'rt/lib/RT/Action/EscalateQueue.pm')
-rwxr-xr-xrt/lib/RT/Action/EscalateQueue.pm21
1 files changed, 12 insertions, 9 deletions
diff --git a/rt/lib/RT/Action/EscalateQueue.pm b/rt/lib/RT/Action/EscalateQueue.pm
index adafbdfb7..2775a8384 100755
--- a/rt/lib/RT/Action/EscalateQueue.pm
+++ b/rt/lib/RT/Action/EscalateQueue.pm
@@ -116,15 +116,18 @@ sub Commit {
if ( my $due_in = $new_queue->DefaultDueIn ) {
$Due->SetToNow;
$Due->AddDays( $due_in );
- }
- ( $val, $msg ) = $ticket->_Set(
- Field => 'Due',
- Value => $Due->ISO,
- RecordTransaction => 0,
- );
- if (! $val) {
- $RT::Logger->error( "Couldn't set new due date: $msg" );
- return (0, $msg);
+
+ if ( $Due->ISO ne $ticket->Due ) {
+ ( $val, $msg ) = $ticket->_Set(
+ Field => 'Due',
+ Value => $Due->ISO,
+ RecordTransaction => 0,
+ );
+ if (! $val) {
+ $RT::Logger->error( "Couldn't set new due date: $msg" );
+ return (0, $msg);
+ }
+ }
}
return 1;
}