Skip to content

Commit

Permalink
FIX contact card state address selected after filling addresss from t…
Browse files Browse the repository at this point in the history
…hirdparty
  • Loading branch information
lvessiller-opendsi committed Oct 28, 2019
1 parent 7f1b67f commit bc3be12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/contact/card.php
Expand Up @@ -972,7 +972,7 @@
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>';
}

Expand Down

0 comments on commit bc3be12

Please sign in to comment.