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
|
@ -9,9 +9,13 @@ function stormperson_list() {
|
|||
$breadcrumb[] = l(t('Home'), '<front>');
|
||||
drupal_set_breadcrumb($breadcrumb);
|
||||
|
||||
if (array_key_exists('organization_nid', $_GET) &&
|
||||
($_SESSION['stormperson_list_filter']['organization_nid'] != $_GET['organization_nid'])) {
|
||||
$_SESSION['stormperson_list_filter']['organization_nid'] = $_GET['organization_nid'];
|
||||
if (array_key_exists('organization_nid', $_GET)) {
|
||||
if ($_SESSION['stormperson_list_filter']['organization_nid'] != $_GET['organization_nid']) {
|
||||
$_SESSION['stormperson_list_filter']['organization_nid'] = $_GET['organization_nid'];
|
||||
}
|
||||
if (array_key_exists('view', $_GET) && $_GET['view'] == 'all') {
|
||||
$_SESSION['stormperson_list_filter']['name'] = '';
|
||||
}
|
||||
}
|
||||
|
||||
$i = new stdClass();
|
||||
|
|
Reference in a new issue