Default application filter to the application you were just in

This commit is contained in:
Nathan Gray 2012-12-03 21:55:52 +00:00
parent 69c2466ed3
commit 57cc6dba1a
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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'));