mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 21:49:28 +01:00
take care that the global_cats param survives the edit
This commit is contained in:
parent
a2c8d14a2c
commit
7796500c60
@ -82,6 +82,11 @@ class admin_categories
|
||||
*/
|
||||
public function edit(array $content=null,$msg='')
|
||||
{
|
||||
// read the session, as the global_cats param is stored with it.
|
||||
$session = egw_cache::getSession(__CLASS__,'nm');
|
||||
$global_cats = $session['global_cats'];
|
||||
unset($session);
|
||||
|
||||
if (!isset($content))
|
||||
{
|
||||
if (!(isset($_GET['cat_id']) && $_GET['cat_id'] > 0 &&
|
||||
@ -165,6 +170,7 @@ class admin_categories
|
||||
$link = egw::link('/index.php',array(
|
||||
'menuaction' => 'admin.admin_categories.index',
|
||||
'msg' => $msg,
|
||||
'global_cats' => (empty($global_cats)? false : true),
|
||||
));
|
||||
$js = "window.opener.location='$link';";
|
||||
if ($button == 'save' || $button == 'delete')
|
||||
|
Loading…
Reference in New Issue
Block a user