Fix save does not close category popup

This commit is contained in:
Nathan Gray 2013-12-16 20:11:58 +00:00
parent 34f8da55c3
commit f9b34a4c56

View File

@ -162,17 +162,17 @@ class admin_categories
{
$content['id'] = $cats->add($content);
$msg = lang('Category saved.');
if ($button == 'save')
{
egw_framework::refresh_opener($msg, 'admin', $content['id']);
egw_framework::window_close();
}
}
else
{
$msg = lang('Permission denied!');
unset($button);
}
if ($button == 'save')
{
egw_framework::refresh_opener($msg, 'admin', $content['id']);
egw_framework::window_close();
}
break;
case 'delete':