mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Update actions when changing between contact & org list
This commit is contained in:
parent
c4a01a3de9
commit
f73943ea8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user