summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-12-17 01:17:06 +0000
committerivan <ivan>2007-12-17 01:17:06 +0000
commitdd859a6dd5620030855765f9d7871fa0111d7d22 (patch)
treebb9a84da07a57a7d928b0b5daba637c8e867d1e2
parent530b42f465b0ab31fbb4c2754d0e385b330f3b5f (diff)
fix the case where the customer doesn't actually have a ship address
-rw-r--r--httemplate/view/cust_main/contacts.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 52754d4cb..0fe2c1ffa 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -29,10 +29,7 @@
% if ( $cust_main->get("${pre}address2") ) {
% my $address2_label =
% ( $conf->exists('cust_main-require_address2')
-% # && ( ( !$which && !$cust_main->has_ship_address )
-% # || ( $which && $cust_main->has_ship_address )
-% # )
-% && ! ( $which xor $cust_main->has_ship_address )
+% && ! ( $pre xor $cust_main->has_ship_address )
% )
% ? 'Unit&nbsp;#'
% : '&nbsp;';