Forgot to update societe card.php with the same changes

This commit is contained in:
Rui Strecht 2018-01-25 18:30:20 +00:00
parent a13866f091
commit 4483265d5e

View File

@ -1143,7 +1143,15 @@ else
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
print '<tr><td>'.fieldLabel('State','state_id').'</td><td colspan="3" class="maxwidthonsmartphone">';
if(!empty($conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT) && ($conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT == 1 || $conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT == 2))
{
print '<tr><td>'.fieldLabel('Region-State','state_id').'</td><td colspan="3" class="maxwidthonsmartphone">';
}
else
{
print '<tr><td>'.fieldLabel('State','state_id').'</td><td colspan="3" class="maxwidthonsmartphone">';
}
if ($object->country_id) print $formcompany->select_state($object->state_id,$object->country_code);
else print $countrynotdefined;
print '</td></tr>';
@ -1700,7 +1708,15 @@ else
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
print '<tr><td>'.fieldLabel('State','state_id').'</td><td colspan="3">';
if(!empty($conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT) && ($conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT == 1 || $conf->global->MAIN_SHOW_REGION_IN_STATE_SELECT == 2))
{
print '<tr><td>'.fieldLabel('Region-State','state_id').'</td><td colspan="3">';
}
else
{
print '<tr><td>'.fieldLabel('State','state_id').'</td><td colspan="3">';
}
print $formcompany->select_state($object->state_id,$object->country_code);
print '</td></tr>';
}