X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FTicketSystem.pm;h=3aeadb37f3285318155816f8b3e0764f2d078e7f;hb=c3596ed941f619f6105aa56ba09da09f3fd631b4;hp=c1c69fa3f0f562e0ac87ade2fffe0699e177a590;hpb=81fbbbd132ec70b81719399aa07d7a6f2606ba6f;p=freeside.git diff --git a/FS/FS/TicketSystem.pm b/FS/FS/TicketSystem.pm index c1c69fa3f..3aeadb37f 100644 --- a/FS/FS/TicketSystem.pm +++ b/FS/FS/TicketSystem.pm @@ -342,6 +342,11 @@ sub _upgrade_data { or die $dbh->errstr; $cve_2013_3373_sth->execute or die $cve_2013_3373_sth->errstr; + # fix null WillResolve fields to avoid spurious transactions the + # first time they get updated + my $fix_null_sql = "UPDATE Tickets SET WillResolve = '1970-01-01 00:00:00' WHERE WillResolve IS NULL"; + $dbh->do($fix_null_sql) or die $dbh->errstr; + return; }