Update actions when changing between contact & org list

This commit is contained in:
Nathan Gray 2014-02-03 20:13:52 +00:00
parent c4a01a3de9
commit f73943ea8d

View File

@ -1261,6 +1261,11 @@ window.egw_LAB.wait(function() {
if (isset($this->org_views[(string) $query['org_view']])) // we have an org view
{
if($query['actions'] && $query['actions']['edit'])
{
// Just switched from contact view, update actions
$query['actions'] = $this->get_actions($query['col_filter']['tid'], $query['org_view']);
}
unset($query['col_filter']['list']); // does not work together
$query['no_filter2'] = true; // switch the distribution list selection off
@ -1309,6 +1314,11 @@ window.egw_LAB.wait(function() {
$query['col_filter'][$name] = $value;
}
}
else if($query['actions'] && !$query['actions']['edit'])
{
// Just switched from org view, update actions
$query['actions'] = $this->get_actions($query['col_filter']['tid'], $query['org_view']);
}
// translate the select order to the really used over all 3 columns
$sort = $query['sort'];
switch($query['order']) // "xxx<>'' DESC" sorts contacts with empty order-criteria always at the end