From 57cc6dba1a34514744b4bbca5ade358bcc3c4408 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 3 Dec 2012 21:55:52 +0000 Subject: [PATCH] Default application filter to the application you were just in --- .../inc/class.importexport_admin_prefs_sidebox_hooks.inc.php | 1 + importexport/inc/class.importexport_definitions_ui.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php index 7a67f2b464..f1ed0a2f33 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -207,6 +207,7 @@ this.value = \'\'"'; { $file['Define imports|exports'] = egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.index', + 'application' => $appname, ),$GLOBALS['egw_info']['user']['apps']['admin'] ? 'admin' : 'preferences'); } if($file) display_sidebox($appname,lang('importexport'),$file); diff --git a/importexport/inc/class.importexport_definitions_ui.inc.php b/importexport/inc/class.importexport_definitions_ui.inc.php index 326a403d91..fe82cffbe1 100644 --- a/importexport/inc/class.importexport_definitions_ui.inc.php +++ b/importexport/inc/class.importexport_definitions_ui.inc.php @@ -161,6 +161,7 @@ class importexport_definitions_ui 'default_cols' => '!actions', // switch legacy actions column and row off by default 'row_id' => 'definition_id', ); + if($_GET['application']) $content['nm']['col_filter']['application'] = $_GET['application']; } if(egw_session::appsession('index', 'importexport')) { $content['nm'] = array_merge($content['nm'], egw_session::appsession('index', 'importexport'));