Commit 8bff61d9 authored by sunnavy's avatar sunnavy
Browse files

no need to Set date if it's already the value

this is mainly to avoid the warning of "That is already the current value",
which fails tests on 4.0
parent 92a840a6
......@@ -41,6 +41,7 @@ sub SetDateField {
$date->Set( Format => 'unix', Value => $value );
$method = 'Set'. $type;
return 1 if $ticket->$type eq $date->ISO;
my ($status, $msg) = $ticket->$method( $date->ISO );
unless ( $status ) {
$RT::Logger->error("Couldn't set $type date: $msg");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment