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
a54f3f23
Commit
a54f3f23
authored
Mar 16, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 280517 : Let me know who is watching my account
Patch by Frederic Buclin <LpSolit@gmail.com> r=myk a=myk
parent
04705e88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
email.html.tmpl
template/en/default/account/prefs/email.html.tmpl
+15
-0
userprefs.cgi
userprefs.cgi
+13
-0
No files found.
template/en/default/account/prefs/email.html.tmpl
View file @
a54f3f23
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
[%# INTERFACE:
[%# INTERFACE:
# watchedusers: string.
# watchedusers: string.
# Comma-separated list of email addresses this user watches.
# Comma-separated list of email addresses this user watches.
# watchers: array.
# Array of users watching this user's account.
# excludeself: boolean.
# excludeself: boolean.
# True if user is not receiving self-generated mail.
# True if user is not receiving self-generated mail.
# <rolename>: Multiple hashes, one for each rolename (e.g. owner; see
# <rolename>: Multiple hashes, one for each rolename (e.g. owner; see
...
@@ -63,6 +65,19 @@
...
@@ -63,6 +65,19 @@
value="[% watchedusers FILTER html %]">
value="[% watchedusers FILTER html %]">
</td>
</td>
</tr>
</tr>
<tr>
<th align="right" valign="baseline">Users watching you:</th>
<td>
[% IF watchers.size %]
[% FOREACH watcher = watchers %]
[% watcher FILTER html %] <br>
[% END %]
[% ELSE %]
Nobody is currently watching your account.
[% END %]
</td>
</tr>
[% END %]
[% END %]
<tr>
<tr>
...
...
userprefs.cgi
View file @
a54f3f23
...
@@ -182,6 +182,19 @@ sub DoEmail {
...
@@ -182,6 +182,19 @@ sub DoEmail {
.
" WHERE watcher = ? AND watch.watched = profiles.userid"
,
.
" WHERE watcher = ? AND watch.watched = profiles.userid"
,
undef
,
$userid
);
undef
,
$userid
);
$vars
->
{
'watchedusers'
}
=
join
(
','
,
@$watched_ref
);
$vars
->
{
'watchedusers'
}
=
join
(
','
,
@$watched_ref
);
my
$watcher_ids
=
$dbh
->
selectcol_arrayref
(
"SELECT watcher FROM watch WHERE watched = ?"
,
undef
,
$userid
);
my
@watchers
;
foreach
my
$watcher_id
(
@$watcher_ids
)
{
my
$watcher
=
new
Bugzilla::
User
(
$watcher_id
);
push
(
@watchers
,
Bugzilla::User::
identity
(
$watcher
));
}
@watchers
=
sort
{
lc
(
$a
)
cmp
lc
(
$b
)
}
@watchers
;
$vars
->
{
'watchers'
}
=
\
@watchers
;
}
}
SendSQL
(
"SELECT emailflags FROM profiles WHERE userid = $userid"
);
SendSQL
(
"SELECT emailflags FROM profiles WHERE userid = $userid"
);
...
...
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