FIX State dropdown is not working on User card #31198 (#31205)

* FIX State dropdown is not working on User card #31198

* Fix phan
This commit is contained in:
Francis Appels 2024-09-30 16:50:54 +02:00 committed by GitHub
parent 4a86964e18
commit f101423901
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ if ($action == 'confirm_delete' && $confirm == "yes" && $permissiontoadd) {
} elseif ($action == 'reopen' && $permissiontoadd && getDolGlobalString('ACCOUNTING_CAN_REOPEN_CLOSED_PERIOD')) {
$result = $object->fetch($id);
$object->status = GETPOST('status', 'int');
$object->status = GETPOSTINT('status');
$result = $object->update($user);
if ($result > 0) {

View file

@ -143,7 +143,7 @@ if (GETPOST('zipcode') || GETPOST('town')) {
top_httphead('text/html');
$formcompany = new FormCompany($db);
print $formcompany->select_state(GETPOSTINT('selected', 1), GETPOSTINT('country_codeid', 1), GETPOSTINT('htmlname', 1), GETPOSTINT('morecss', 1));
print $formcompany->select_state(GETPOSTINT('selected', 1), GETPOSTINT('country_codeid', 1), GETPOST('htmlname', 'alpha', 1), GETPOST('morecss', 'alpha', 1));
}
$db->close();