mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
* fixed not working deleted of application-global categories via "admin >> global categories" in applications
This commit is contained in:
parent
f3ba8e0a69
commit
a26a899ea0
@ -332,9 +332,9 @@ class admin_categories
|
||||
}
|
||||
else
|
||||
{
|
||||
if($content['delete']['delete'])
|
||||
if($content['delete']['delete'] && ($cat = categories::read($content['delete']['cat_id'])))
|
||||
{
|
||||
$cats = new categories(categories::GLOBAL_ACCOUNT,$content['nm']['appname']);
|
||||
$cats = new categories(categories::GLOBAL_ACCOUNT,$cat['appname']);
|
||||
$cats->delete($content['delete']['cat_id'],$content['delete']['subs'],!$content['delete']['subs']);
|
||||
$msg = lang('Category deleted.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user