mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix for bug [ 1446044 ] eGw asking for delete sub-categories when it not exists
This commit is contained in:
parent
cfc4ad5006
commit
db1a32aa33
@ -119,7 +119,7 @@
|
||||
{
|
||||
$data['type'] = $data['type'] ? $data['type'] : '';
|
||||
$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($data)
|
||||
|
@ -677,7 +677,7 @@
|
||||
{
|
||||
$where['cat_id'] = $cat_id;
|
||||
}
|
||||
if ($parent) $where['cat_parent'] = $cat_parent;
|
||||
if ($parent) $where['cat_parent'] = $parent;
|
||||
|
||||
$this->db->select($this->table,'cat_id',$where,__LINE__,__FILE__);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user