Merge pull request #12747 from OPEN-DSI/v10-fix-contact-card-select-state

FIX contact card state address selected after filling address
This commit is contained in:
Laurent Destailleur 2019-12-23 13:47:16 +01:00 committed by GitHub
commit 1229e8bc4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -967,7 +967,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(GETPOSTISSET('state_id')?GETPOST('state_id', 'alpha'):$object->state_id, $object->country_code, 'state_id');
print '</td></tr>';
}