projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47d47f7
)
avoid noise on upgrades
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 11 Sep 2013 08:41:26 +0000
(
01:41
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 11 Sep 2013 08:41:26 +0000
(
01:41
-0700)
FS/FS/Upgrade.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Upgrade.pm
b/FS/FS/Upgrade.pm
index
cda3198
..
21dda09
100644
(file)
--- a/
FS/FS/Upgrade.pm
+++ b/
FS/FS/Upgrade.pm
@@
-86,10
+86,10
@@
sub upgrade_config {
# if there's a USPS tools login, assume that's the standardization method
# you want to use
# if there's a USPS tools login, assume that's the standardization method
# you want to use
- if ( length($conf->config('usps_webtools-userid')) > 0 and
- !$conf->exists('address_standardize_method') ) {
- $conf->set('address_standardize_method', 'usps');
- }
+ $conf->set('address_standardize_method', 'usps')
+ if $conf->exists('usps_webtools-userid')
+ && length($conf->config('usps_webtools-userid')) > 0
+ && ! $conf->exists('address_standardize_method');
}
}