summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/Conf.pm2
-rw-r--r--FS/FS/Cron/disable_quotation.pm2
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;
}
}