Commit b66dedd5 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 309896: The "Saved searches" tab in User Prefs can report incorrect…

Bug 309896: The "Saved searches" tab in User Prefs can report incorrect information - Patch by A. Karl Kornel <karl@kornel.name> r=LpSolit a=justdave
parent 40dcf522
......@@ -198,13 +198,19 @@ sub queries {
my $dbh = Bugzilla->dbh;
my $sth = $dbh->prepare(q{ SELECT
DISTINCT name, query, linkinfooter,
CASE WHEN whine_queries.id
IS NOT NULL THEN 1 ELSE 0 END,
CASE WHEN whine_queries.id IS NOT NULL
THEN 1 ELSE 0 END,
UPPER(name) AS uppername
FROM namedqueries
LEFT JOIN whine_events
ON whine_events.owner_userid =
namedqueries.userid
LEFT JOIN whine_queries
ON whine_queries.query_name = name
WHERE userid=?
ON whine_queries.query_name =
namedqueries.name
AND whine_queries.eventid =
whine_events.id
WHERE namedqueries.userid=?
ORDER BY uppername});
$sth->execute($self->{id});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment