more fixes for znuny view

This commit is contained in:
Timotheus Pokorra 2024-11-18 13:05:19 +01:00 committed by Dev und Test fuer hsadminng
parent 141f761ded
commit bb2bdea788

View File

@ -41,7 +41,6 @@ SELECT
JOIN hs_office.relation AS relation ON relation.anchoruuid = rs1.holderuuid JOIN hs_office.relation AS relation ON relation.anchoruuid = rs1.holderuuid
JOIN hs_office.contact AS c ON c.uuid = relation.contactuuid JOIN hs_office.contact AS c ON c.uuid = relation.contactuuid
JOIN hs_office.person AS per ON per.uuid = relation.holderuuid JOIN hs_office.person AS per ON per.uuid = relation.holderuuid
where debitor.defaultprefix != 'hsh' WHERE (debitor.defaultprefix != 'hsh' OR (p.partnernumber = 10000 AND c.emailaddresses->>'main' = 'hostmaster@hostsharing.net'))
and relation.type != 'DEBITOR' GROUP BY c.emailaddresses, c.phonenumbers;
group by c.emailaddresses, c.phonenumbers;
--// --//