Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
5107efb5
Commit
5107efb5
authored
Dec 14, 2005
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 319942: Preferences not deleted along with user accounts.
Patch by Marc Schumann <wurblzap@gmail.com>, r=LpSolit, a=justdave
parent
758dc7bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
editusers.cgi
editusers.cgi
+12
-0
confirm-delete.html.tmpl
template/en/default/admin/users/confirm-delete.html.tmpl
+15
-3
No files found.
editusers.cgi
View file @
5107efb5
...
...
@@ -436,6 +436,9 @@ if ($action eq 'search') {
$vars
->
{
'bugs_activity'
}
=
$dbh
->
selectrow_array
(
'SELECT COUNT(*) FROM bugs_activity WHERE who = ?'
,
undef
,
$otherUserID
);
$vars
->
{
'email_setting'
}
=
$dbh
->
selectrow_array
(
'SELECT COUNT(*) FROM email_setting WHERE user_id = ?'
,
undef
,
$otherUserID
);
$vars
->
{
'flags'
}{
'requestee'
}
=
$dbh
->
selectrow_array
(
'SELECT COUNT(*) FROM flags WHERE requestee_id = ? AND is_active = 1'
,
undef
,
$otherUserID
);
...
...
@@ -448,6 +451,9 @@ if ($action eq 'search') {
$vars
->
{
'namedqueries'
}
=
$dbh
->
selectrow_array
(
'SELECT COUNT(*) FROM namedqueries WHERE userid = ?'
,
undef
,
$otherUserID
);
$vars
->
{
'profile_setting'
}
=
$dbh
->
selectrow_array
(
'SELECT COUNT(*) FROM profile_setting WHERE user_id = ?'
,
undef
,
$otherUserID
);
$vars
->
{
'profiles_activity'
}
=
$dbh
->
selectrow_array
(
'SELECT COUNT(*) FROM profiles_activity WHERE who = ? AND userid != ?'
,
undef
,
(
$otherUserID
,
$otherUserID
));
...
...
@@ -499,6 +505,8 @@ if ($action eq 'search') {
'logincookies WRITE'
,
'profiles WRITE'
,
'profiles_activity WRITE'
,
'email_setting WRITE'
,
'profile_setting WRITE'
,
'groups READ'
,
'bug_group_map READ'
,
'user_group_map WRITE'
,
...
...
@@ -568,8 +576,12 @@ if ($action eq 'search') {
}
# Simple deletions in referred tables.
$dbh
->
do
(
'DELETE FROM email_setting WHERE user_id = ?'
,
undef
,
$otherUserID
);
$dbh
->
do
(
'DELETE FROM logincookies WHERE userid = ?'
,
undef
,
$otherUserID
);
$dbh
->
do
(
'DELETE FROM namedqueries WHERE userid = ?'
,
undef
,
$otherUserID
);
$dbh
->
do
(
'DELETE FROM profile_setting WHERE user_id = ?'
,
undef
,
$otherUserID
);
$dbh
->
do
(
'DELETE FROM profiles_activity WHERE userid = ? OR who = ?'
,
undef
,
(
$otherUserID
,
$otherUserID
));
$dbh
->
do
(
'DELETE FROM tokens WHERE userid = ?'
,
undef
,
$otherUserID
);
...
...
template/en/default/admin/users/confirm-delete.html.tmpl
View file @
5107efb5
...
...
@@ -235,9 +235,9 @@
[% display_warning = 1 %]
[% END %]
[% IF assignee_or_qa || cc ||
flags.requestee || namedqueries
||
series || votes || watch.watched || watch.watcher
||
whine_events || whine_schedules %]
[% IF assignee_or_qa || cc ||
email_setting || flags.requestee
||
namedqueries || profile_setting || series || votes || watch.watched
||
w
atch.watcher || w
hine_events || whine_schedules %]
<div class="warningmessages">
<p>The following deletions are <b>safe</b> and will not generate
referential integrity inconsistencies.</p>
...
...
@@ -272,6 +272,12 @@
If you delete the user account, it will be removed from these CC lists.
</li>
[% END %]
[% IF email_setting %]
<li>
The user's e-mail settings will be deleted along with the user
account.
</li>
[% END %]
[% IF flags.requestee %]
<li>
[% otheruser.login FILTER html %] has been
...
...
@@ -308,6 +314,12 @@
will be deleted along with the user account.
</li>
[% END %]
[% IF profile_setting %]
<li>
The user's preference settings will be deleted along with the user
account.
</li>
[% END %]
[% IF series %]
<li>
[% otheruser.login FILTER html %] has created
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment