FIX contact card state address selected after filling addresss from thirdparty

This commit is contained in:
VESSILLER 2019-10-28 10:32:46 +01:00
parent 7f1b67f0e4
commit bc3be12756

View File

@ -972,7 +972,7 @@ else
print '<tr><td><label for="state_id">'.$langs->trans('State').'</label></td><td colspan="3" class="maxwidthonsmartphone">';
}
print $formcompany->select_state($object->state_id, isset($_POST["country_id"])?GETPOST("country_id"):$object->country_id, 'state_id');
print $formcompany->select_state(GETPOST('state_id', 'alpha')?GETPOST('state_id', 'alpha'):$object->state_id, $object->country_code, 'state_id');
print '</td></tr>';
}