Merge branch 'ent-10320-no-pide-confirmacion-al-eliminar-usuario' into 'develop'

Ent 10320 no pide confirmacion al eliminar usuario

See merge request artica/pandorafms!5678
This commit is contained in:
Matias Didier 2023-04-12 11:03:01 +00:00
commit 5a38024e25
1 changed files with 4 additions and 3 deletions

View File

@ -970,7 +970,7 @@ foreach ($info as $user_id => $user_info) {
*/
$userListActionButtons[] = html_print_menu_button(
[
'href' => ui_get_full_url(
'href' => ui_get_full_url(
sprintf(
'index.php?sec=%s&sec2=godmode/users/user_list&user_del=1&pure=%s&delete_user=%s',
$sec,
@ -978,8 +978,9 @@ foreach ($info as $user_id => $user_info) {
$user_info['id_user']
)
),
'image' => 'images/delete.svg',
'title' => __('Delete'),
'image' => 'images/delete.svg',
'title' => __('Delete'),
'onClick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;',
],
true
);