mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00:00
[ticket/9548] Delete user quicktool drop down should have an empty or invalid selection as the default
PHPBB3-9548
This commit is contained in:
parent
03d50a2e83
commit
5f4c6e9c91
2 changed files with 21 additions and 14 deletions
|
@ -140,7 +140,7 @@
|
||||||
<legend>{L_DELETE_USER}</legend>
|
<legend>{L_DELETE_USER}</legend>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="delete_type">{L_DELETE_USER}:</label><br /><span>{L_DELETE_USER_EXPLAIN}</span></dt>
|
<dt><label for="delete_type">{L_DELETE_USER}:</label><br /><span>{L_DELETE_USER_EXPLAIN}</span></dt>
|
||||||
<dd><select id="delete_type" name="delete_type"><option value="retain">{L_RETAIN_POSTS}</option><option value="remove">{L_DELETE_POSTS}</option></select></dd>
|
<dd><select id="delete_type" name="delete_type"><option class="sep" value="">{L_SELECT_OPTION}</option><option value="retain">{L_RETAIN_POSTS}</option><option value="remove">{L_DELETE_POSTS}</option></select></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<p class="quick">
|
<p class="quick">
|
||||||
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
|
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
|
||||||
|
|
|
@ -191,24 +191,31 @@ class acp_users
|
||||||
trigger_error($user->lang['CANNOT_REMOVE_YOURSELF'] . adm_back_link($this->u_action . '&u=' . $user_id), E_USER_WARNING);
|
trigger_error($user->lang['CANNOT_REMOVE_YOURSELF'] . adm_back_link($this->u_action . '&u=' . $user_id), E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (confirm_box(true))
|
if ($delete_type)
|
||||||
{
|
{
|
||||||
user_delete($delete_type, $user_id, $user_row['username']);
|
if (confirm_box(true))
|
||||||
|
{
|
||||||
|
user_delete($delete_type, $user_id, $user_row['username']);
|
||||||
|
|
||||||
add_log('admin', 'LOG_USER_DELETED', $user_row['username']);
|
add_log('admin', 'LOG_USER_DELETED', $user_row['username']);
|
||||||
trigger_error($user->lang['USER_DELETED'] . adm_back_link($this->u_action));
|
trigger_error($user->lang['USER_DELETED'] . adm_back_link($this->u_action));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
confirm_box(false, $user->lang['CONFIRM_OPERATION'], build_hidden_fields(array(
|
||||||
|
'u' => $user_id,
|
||||||
|
'i' => $id,
|
||||||
|
'mode' => $mode,
|
||||||
|
'action' => $action,
|
||||||
|
'update' => true,
|
||||||
|
'delete' => 1,
|
||||||
|
'delete_type' => $delete_type))
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
confirm_box(false, $user->lang['CONFIRM_OPERATION'], build_hidden_fields(array(
|
trigger_error($user->lang['NO_MODE'] . adm_back_link($this->u_action . '&u=' . $user_id), E_USER_WARNING);
|
||||||
'u' => $user_id,
|
|
||||||
'i' => $id,
|
|
||||||
'mode' => $mode,
|
|
||||||
'action' => $action,
|
|
||||||
'update' => true,
|
|
||||||
'delete' => 1,
|
|
||||||
'delete_type' => $delete_type))
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue