Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Fix: Client 'show unused contacts' returns empty although admin 'show…
Browse files Browse the repository at this point in the history
… unused contacts' works
  • Loading branch information
bbs2web committed Feb 25, 2014
1 parent 28b5bf7 commit 5a341ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/www/client/ajax/contacts_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
if ($req_unused)
{
$sql .= " AND (" . join(" AND ", array(
"clid NOT IN (SELECT DISTINCT c_registrant FROM domains)",
"clid NOT IN (SELECT DISTINCT c_admin FROM domains)",
"clid NOT IN (SELECT DISTINCT c_tech FROM domains)",
"clid NOT IN (SELECT DISTINCT c_billing FROM domains)",
"clid NOT IN (SELECT DISTINCT c_registrant FROM domains WHERE c_registrant IS NOT NULL)",
"clid NOT IN (SELECT DISTINCT c_admin FROM domains WHERE c_admin IS NOT NULL)",
"clid NOT IN (SELECT DISTINCT c_tech FROM domains WHERE c_tech IS NOT NULL)",
"clid NOT IN (SELECT DISTINCT c_billing FROM domains WHERE c_billing IS NOT NULL)",
)) . ")";

}
Expand Down Expand Up @@ -85,4 +85,4 @@
}

print json_encode($response);
?>
?>

0 comments on commit 5a341ae

Please sign in to comment.