Hello,
When I create a custom field in the address book, and then click on the column header of this field to sort the addresses on it, I get this error:
Database error
Invalid SQL: SELECT DISTINCT egw_addressbook.*,contact_value<>’’ FROM egw_addressbook LEFT JOIN egw_addressbook_extra extra_order ON egw_addressbook.contact_id=extra_order.contact_id AND extra_order.contact_name=‘extra’ WHERE contact_tid=‘n’ AND (egw_addressbook.contact_owner=8 OR contact_private=0 AND egw_addressbook.contact_owner IN (8,0) OR egw_addressbook.contact_owner IS NULL) ORDER BY extra_order.contact_value<>’’ DESC,extra_order.contact_value ASC,org_name ASC,n_family ASC,n_given ASC:
ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
Is this a known bug? I couldn’t find anything about it.