Skip to content

Commit

Permalink
FIX Dolibarr#30520 Creator user data displayed in the form after an e…
Browse files Browse the repository at this point in the history
…rror in the user creation form
  • Loading branch information
FlorentPoinsaut committed Aug 1, 2024
1 parent cbc28b0 commit ff8310a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/user/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
$cancel = GETPOST('cancel', 'alpha');
$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'useracard'; // To manage different context of search

if (empty($id) && $action != 'create') {
if (empty($id) && $action != 'add' && $action != 'create') {
$id = $user->id;
}

Expand Down

0 comments on commit ff8310a

Please sign in to comment.