diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-01-13 19:01:29 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-01-13 19:01:29 -0800 |
commit | a65d16767bcaa1077be0f41568a4349c9db18990 (patch) | |
tree | fc4c3e6465b735ddcf4d740afd9f1196c89fbac7 /httemplate/misc/xmlhttp-address_standardize.html | |
parent | a62346b3ac1f66ffbf12d109c9da186c8d0ca576 (diff) | |
parent | f88dda7fe57054bd030491a5b9363a1aff601bf2 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc/xmlhttp-address_standardize.html')
-rw-r--r-- | httemplate/misc/xmlhttp-address_standardize.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/misc/xmlhttp-address_standardize.html b/httemplate/misc/xmlhttp-address_standardize.html index 988057163..15f266ab0 100644 --- a/httemplate/misc/xmlhttp-address_standardize.html +++ b/httemplate/misc/xmlhttp-address_standardize.html @@ -16,12 +16,10 @@ my %old = %{ decode_json($cgi->param('arg')) } my %new; -my @prefixes; -if ($old{onlyship}) { - @prefixes = ('ship_'); -} elsif ( $old{same} ) { +my @prefixes = (''); +if ( $old{same} ) { @prefixes = ('bill_'); -} else { +} elsif ( $old{billship} ) { @prefixes = ('bill_', 'ship_'); } my $all_same = 1; @@ -44,6 +42,8 @@ foreach my $pre ( @prefixes ) { $all_same = 0 if ( $new{$pre.$_} ne $old{$pre.$_} ); last if !$all_same; } + + $all_same = 0 if $new{$pre.'error'}; } my $return = { old => \%old, new => \%new, all_same => $all_same }; |