Clean the filters for lists linked by SuiteDesk nodes shortcuts

This commit is contained in:
Manuel Cillero 2017-09-05 21:27:33 +02:00
parent 1371a4bec5
commit c3e1439b06
11 changed files with 85 additions and 34 deletions

View file

@ -13,6 +13,20 @@ function stormproject_list() {
if ($_SESSION['stormproject_list_filter']['organization_nid'] != $_GET['organization_nid']) {
$_SESSION['stormproject_list_filter']['organization_nid'] = $_GET['organization_nid'];
}
if (array_key_exists('view', $_GET) && $_GET['view'] == 'all') {
$_SESSION['stormproject_list_filter']['projectcategory'] = '-';
$_SESSION['stormproject_list_filter']['projectstatus'] = '-';
$_SESSION['stormproject_list_filter']['projectpriority'] = '-';
unset($_SESSION['stormproject_list_filter']['datebeginfrom']);
unset($_SESSION['stormproject_list_filter']['datebeginto']);
unset($_SESSION['stormproject_list_filter']['dateendfrom']);
unset($_SESSION['stormproject_list_filter']['dateendto']);
unset($_SESSION['stormproject_list_filter']['assigned_to']);
$_SESSION['stormproject_list_filter']['billable'] = '-';
$_SESSION['stormproject_list_filter']['billed'] = '-';
}
}
$i = new stdClass();