mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 16:59:35 +01:00
fix sql error, if somehow a uid get into org_view attribute
This commit is contained in:
parent
f5adfc9a3d
commit
ff8b0a5086
@ -1275,9 +1275,13 @@ class addressbook_ui extends addressbook_bo
|
|||||||
foreach(explode('|||',$query['org_view']) as $part)
|
foreach(explode('|||',$query['org_view']) as $part)
|
||||||
{
|
{
|
||||||
list($name,$value) = explode(':',$part,2);
|
list($name,$value) = explode(':',$part,2);
|
||||||
|
if ($value && ($GLOBALS['egw']->db->get_column_attribute($name, 'egw_addressbook', 'phpgwapi', 'type') ||
|
||||||
|
$GLOBALS['egw']->db->get_column_attribute('contact_'.$name, 'egw_addressbook', 'phpgwapi', 'type')))
|
||||||
|
{
|
||||||
$query['col_filter'][$name] = $value;
|
$query['col_filter'][$name] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// translate the select order to the really used over all 3 columns
|
// translate the select order to the really used over all 3 columns
|
||||||
$sort = $query['sort'];
|
$sort = $query['sort'];
|
||||||
switch($query['order']) // "xxx<>'' DESC" sorts contacts with empty order-criteria always at the end
|
switch($query['order']) // "xxx<>'' DESC" sorts contacts with empty order-criteria always at the end
|
||||||
|
Loading…
Reference in New Issue
Block a user