FIX #30520 Creator user data displayed in the form after an error in the user creation form (#30521)

This commit is contained in:
Florent Poinsaut 2024-08-15 17:24:42 +02:00 committed by GitHub
parent d8d93c8f22
commit c7f8a8c06d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ $group = GETPOSTINT("group", 3);
$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;
}