fix (unnecessary) storing rows into session

It causes php-memcached session-handler to loose the session "error saving session to memcached"
This commit is contained in:
Ralf Becker 2017-02-27 17:22:13 +01:00
parent 8033f8ff7c
commit a9a2dbd0ad

View File

@ -316,6 +316,7 @@ class infolog_ui
unset($query['col_filter']['parent_id']); unset($query['col_filter']['parent_id']);
if(!$query['action']) if(!$query['action'])
{ {
unset($query['rows']);
Api\Cache::setSession('infolog', $query['session_for'].'session_data', $query); Api\Cache::setSession('infolog', $query['session_for'].'session_data', $query);
} }
$query['actions'] = $this->get_actions($query); $query['actions'] = $this->get_actions($query);
@ -855,6 +856,7 @@ class infolog_ui
{ {
unset($values['nm']['multi_action']); unset($values['nm']['multi_action']);
unset($values['nm']['action_id']); unset($values['nm']['action_id']);
unset($values['nm']['rows']);
Api\Cache::setSession('infolog', $values['nm']['session_for'].'session_data', $values['nm']); Api\Cache::setSession('infolog', $values['nm']['session_for'].'session_data', $values['nm']);
$this->tmpl->location($own_referer); $this->tmpl->location($own_referer);
} }