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
a735df3a
Commit
a735df3a
authored
Feb 18, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Was crashing when logging profile activity.
parent
98292643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
editusers.cgi
editusers.cgi
+6
-3
No files found.
editusers.cgi
View file @
a735df3a
...
...
@@ -659,8 +659,8 @@ if ($action eq 'update') {
my
$emailnotificationold
=
trim
(
$::FORM
{
emailnotificationold
}
||
''
);
my
$disabledtext
=
trim
(
$::FORM
{
disabledtext
}
||
''
);
my
$disabledtextold
=
trim
(
$::FORM
{
disabledtextold
}
||
''
);
my
$groupsetold
=
trim
(
$::FORM
{
groupsetold
}
||
''
);
my
$blessgroupsetold
=
trim
(
$::FORM
{
blessgroupsetold
}
||
''
);
my
$groupsetold
=
trim
(
$::FORM
{
groupsetold
}
||
'
0
'
);
my
$blessgroupsetold
=
trim
(
$::FORM
{
blessgroupsetold
}
||
'
0
'
);
my
$groupset
=
"0"
;
foreach
(
keys
%::
FORM
)
{
...
...
@@ -681,6 +681,9 @@ if ($action eq 'update') {
# them, be sure to test for WHERE='$product' or WHERE='$productold'
if
(
$groupset
ne
$groupsetold
)
{
SendSQL
(
"SELECT groupset FROM profiles WHERE login_name="
.
SqlQuote
(
$userold
));
$groupsetold
=
FetchOneColumn
();
SendSQL
(
"UPDATE profiles
SET groupset =
groupset - (groupset & $opblessgroupset) + $groupset
...
...
@@ -696,7 +699,7 @@ if ($action eq 'update') {
(
$u
,
$groupset
)
=
(
FetchSQLData
());
if
(
$groupset
ne
$groupsetold
)
{
SendSQL
(
"INSERT INTO profiles_activity "
.
"(userid,who,profiles_when,fieldid,oldvalue,newvalue)"
.
"(userid,who,profiles_when,fieldid,oldvalue,newvalue)
"
.
"VALUES "
.
"($u, $::userid, now(), $fieldid, "
.
" $groupsetold, $groupset)"
);
...
...
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