forked from extern/egroupware
Avoid saving msg when deleting category
This commit is contained in:
parent
4df5fad081
commit
8c4cfeb7f7
@ -152,11 +152,11 @@ class admin_categories
|
|||||||
case 'apply':
|
case 'apply':
|
||||||
if(is_array($content['owner'])) $content['owner'] = implode(',',$content['owner']);
|
if(is_array($content['owner'])) $content['owner'] = implode(',',$content['owner']);
|
||||||
if($content['owner'] == '') $content['owner'] = 0;
|
if($content['owner'] == '') $content['owner'] = 0;
|
||||||
|
unset($content['msg']);
|
||||||
if ($content['id'] && self::$acl_edit)
|
if ($content['id'] && self::$acl_edit)
|
||||||
{
|
{
|
||||||
|
|
||||||
$data = $cats->id2name($content['id'],'data');
|
$data = $cats->id2name($content['id'],'data');
|
||||||
unset($content['msg']);
|
|
||||||
if(!$content['parent'])
|
if(!$content['parent'])
|
||||||
{
|
{
|
||||||
$content['parent'] = '0';
|
$content['parent'] = '0';
|
||||||
|
Loading…
Reference in New Issue
Block a user