Clean the filters for lists linked by SuiteDesk nodes shortcuts
This commit is contained in:
parent
1371a4bec5
commit
c3e1439b06
11 changed files with 85 additions and 34 deletions
|
@ -526,14 +526,26 @@ function stormtask_list() {
|
|||
}
|
||||
unset($_SESSION['stormtask_list_filter']['project_nid']);
|
||||
}
|
||||
|
||||
if (array_key_exists('project_nid', $_GET)) {
|
||||
if ($_SESSION['stormtask_list_filter']['project_nid'] != $_GET['project_nid']) {
|
||||
$_SESSION['stormtask_list_filter']['project_nid'] = $_GET['project_nid'];
|
||||
}
|
||||
$p = node_load($_GET['project_nid']);
|
||||
$_SESSION['stormtask_list_filter']['organization_nid'] = $p->organization_nid;
|
||||
}
|
||||
if (array_key_exists('view', $_GET) && $_GET['view'] == 'all') {
|
||||
$_SESSION['stormtask_list_filter']['taskcategory'] = '-';
|
||||
$_SESSION['stormtask_list_filter']['taskstatus'] = '-';
|
||||
$_SESSION['stormtask_list_filter']['taskpriority'] = '-';
|
||||
|
||||
unset($_SESSION['stormtask_list_filter']['datebeginfrom']);
|
||||
unset($_SESSION['stormtask_list_filter']['datebeginto']);
|
||||
unset($_SESSION['stormtask_list_filter']['dateendfrom']);
|
||||
unset($_SESSION['stormtask_list_filter']['dateendto']);
|
||||
unset($_SESSION['stormtask_list_filter']['assigned_to']);
|
||||
|
||||
$_SESSION['stormtask_list_filter']['billable'] = '-';
|
||||
$_SESSION['stormtask_list_filter']['billed'] = '-';
|
||||
}
|
||||
|
||||
$i = new stdClass();
|
||||
|
|
Reference in a new issue