GX-Bug #52570 » CustomersZoneFix.patch
| src/admin/customers.php (revision ) | ||
|---|---|---|
| 521 | 521 |
$country = $coo_country_service->getCountryById(new IdType($entry_country_id)); |
| 522 | 522 |
$entry_state_has_zone = $coo_country_service->countryHasCountryZones($country); |
| 523 | 523 |
|
| 524 |
if((gm_get_env_info('TEMPLATE_VERSION') < 3.0 && ACCOUNT_STATE === 'true') || (gm_get_env_info('TEMPLATE_VERSION') >= 3.0 && (ACCOUNT_STATE === 'false' && $is_state_mandatory && $entry_state_has_zone)))
|
|
| 524 |
if((ACCOUNT_STATE === 'true' && $entry_state_has_zone) || (ACCOUNT_STATE === 'false' && $is_state_mandatory && $entry_state_has_zone))
|
|
| 525 | 525 |
{
|
| 526 | 526 |
$check_query = xtc_db_query("select count(*) as total from ".TABLE_ZONES." where zone_country_id = '".(int) $entry_country_id."'");
|
| 527 | 527 |
$check = xtc_db_fetch_array($check_query); |
| ... | ... | |
| 708 | 708 |
$customerDefaultAddress->setSuburb(MainFactory::create('CustomerSuburb', $entry_suburb));
|
| 709 | 709 |
} |
| 710 | 710 | |
| 711 |
if((gm_get_env_info('TEMPLATE_VERSION') < 3.0 && ACCOUNT_STATE === 'true') || (gm_get_env_info('TEMPLATE_VERSION') >= 3.0 && (ACCOUNT_STATE === 'false' && $is_state_mandatory && $entry_state_has_zone)))
|
|
| 711 |
if((ACCOUNT_STATE === 'true' && $entry_state_has_zone) || (ACCOUNT_STATE === 'false' && $is_state_mandatory && $entry_state_has_zone))
|
|
| 712 | 712 |
{
|
| 713 | 713 |
if($entry_zone_id > 0) |
| 714 | 714 |
{
|