another bug: if we dont order by cf's we dont need to extend the customfields by its tablename

This commit is contained in:
Klaus Leithoff 2008-04-07 10:02:01 +00:00
parent 8057d8b368
commit 6d36d46e90

View File

@ -308,8 +308,11 @@ class socontacts_sql extends so_sql
}
elseif($col == 'contact_value')
{
$criteria =array_merge($criteria,array('extra_order.contact_value'=>$val));
unset($criteria[$col]);
if ($order_by[0] == '#')
{
$criteria =array_merge($criteria,array('extra_order.contact_value'=>$val));
unset($criteria[$col]);
}
}
}
}