mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-05 02:32:05 +01:00
fix for bug [ 1446044 ] eGw asking for delete sub-categories when it not exists
This commit is contained in:
parent
db1a32aa33
commit
e2988daef4
@ -96,7 +96,7 @@
|
|||||||
{
|
{
|
||||||
$data['type'] = $data['type'] ? $data['type'] : '';
|
$data['type'] = $data['type'] ? $data['type'] : '';
|
||||||
$data['cat_id'] = $data['cat_id'] ? $data['cat_id'] : '';
|
$data['cat_id'] = $data['cat_id'] ? $data['cat_id'] : '';
|
||||||
return $this->cats->exists($data['type'],$data['cat_name'],$data['cat_id']);
|
return $this->cats->exists($data['type'],$data['cat_name'],$data['type'] == 'subs' ? 0 : $data['cat_id'],$data['type'] != 'subs' ? 0 : $data['cat_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatted_list($format,$type,$cat_parent,$global_cats)
|
function formatted_list($format,$type,$cat_parent,$global_cats)
|
||||||
|
Loading…
Reference in New Issue
Block a user