Import/Export - fix definition list actions (Create export) disappeared from context menu after use

This commit is contained in:
nathangray 2019-07-08 13:28:59 -06:00
parent b6bbe8c681
commit 94798bb691

View File

@ -160,7 +160,6 @@ class importexport_definitions_ui
}
}
if(!is_array($content['nm'])) {
$content['nm'] = array(
'get_rows' => 'importexport.importexport_definitions_ui.get_rows',
'no_cat' => true,
@ -172,7 +171,7 @@ class importexport_definitions_ui
'placeholder_actions' => array('add')
);
if($_GET['application']) $content['nm']['col_filter']['application'] = $_GET['application'];
}
if(Api\Cache::getSession('importexport', 'index'))
{
$content['nm'] = array_merge($content['nm'], Api\Cache::getSession('importexport', 'index'));
@ -427,7 +426,9 @@ class importexport_definitions_ui
public function get_rows(&$query, &$rows, &$readonlys) {
$rows = array();
Api\Cache::setSession('importexport', 'index', $query);
Api\Cache::setSession('importexport', 'index', array_intersect_key($query, array_flip(array(
'col_filter', 'search', 'filter', 'filter2'
))));
// Special handling for allowed users 'private'
if($query['col_filter']['allowed_users'] == 'private')