Skip to content

Commit

Permalink
FIX State dropdown is not working on User card #31198 (#31205)
Browse files Browse the repository at this point in the history
* FIX State dropdown is not working on User card #31198

* Fix phan
  • Loading branch information
fappels authored Sep 30, 2024
1 parent 4a86964 commit f101423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/accountancy/admin/fiscalyear_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
} 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) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/ajax/ziptown.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
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();

0 comments on commit f101423

Please sign in to comment.