From 47ceec17a0b069a16686c93eca4bd227fc045625 Mon Sep 17 00:00:00 2001
From: Christopher Burger <burgerc@freeside.biz>
Date: Tue, 1 Aug 2017 12:38:02 -0400
Subject: [PATCH] RT# 74665 - removed section name and updated disable query to
 keep working on V3

---
 FS/FS/Conf.pm                   | 2 +-
 FS/FS/Cron/disable_quotation.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 9f660733c..c0e7cd0be 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -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'
   },
diff --git a/FS/FS/Cron/disable_quotation.pm b/FS/FS/Cron/disable_quotation.pm
index fde2686eb..3a1158672 100644
--- a/FS/FS/Cron/disable_quotation.pm
+++ b/FS/FS/Cron/disable_quotation.pm
@@ -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;
     }
 }
 
-- 
2.20.1