diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-08-01 12:38:02 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-08-01 12:38:02 -0400 |
commit | 47ceec17a0b069a16686c93eca4bd227fc045625 (patch) | |
tree | 46651dc594f0495a71ee5b5bfc0f8b81030ccc35 | |
parent | 6554e22d3f998a18c994bbe36b97db4e2a7e4837 (diff) |
RT# 74665 - removed section name and updated disable query to keep working on V3
-rw-r--r-- | FS/FS/Conf.pm | 2 | ||||
-rw-r--r-- | 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; } } |