RT# 74665 - removed section name and updated disable query to keep working on V3
authorChristopher Burger <burgerc@freeside.biz>
Tue, 1 Aug 2017 16:38:02 +0000 (12:38 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 1 Aug 2017 16:38:02 +0000 (12:38 -0400)
FS/FS/Conf.pm
FS/FS/Cron/disable_quotation.pm

index 9f66073..c0e7cd0 100644 (file)
@@ -1647,7 +1647,7 @@ and customer address. Include units.',
 
   {
     'key'         => 'quotation_disable_after_days',
-    'section'     => 'quotations',
+    'section'     => '',
     'description' => 'The number of days, if set, after which a non-converted quotation will be automatically disabled.',
     'type'        => 'text'
   },
index fde2686..3a11586 100644 (file)
@@ -14,7 +14,7 @@ sub disable_quotation {
             "UPDATE quotation SET disabled = 'Y' WHERE _date < ?"
         ) or die dbh->errstr;
         $sth->execute( time - ( $days * 86400 ) ) or die $sth->errstr;
-        dbh->commit or die dbh->errstr if $FS::UID::AutoCommit;
+        dbh->commit or die dbh->errstr;
     }
 }