forked from extern/egroupware
update delete cats
This commit is contained in:
parent
557c3842f2
commit
4e16995d6f
@ -147,14 +147,7 @@
|
||||
{
|
||||
if (is_array($data))
|
||||
{
|
||||
$cat_id = $data['cat_id'];
|
||||
$drop_subs = (isset($data['drop_subs'])?$data['drop_subs']:False);
|
||||
$modify_subs = (isset($data['modify_subs'])?$data['modify_subs']:False);
|
||||
|
||||
if ($cat_id > 0)
|
||||
{
|
||||
$this->cats->delete($cat_id,$drop_subs,$modify_subs);
|
||||
}
|
||||
$this->cats->delete($data);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,9 +104,12 @@
|
||||
return $this->cats->formated_list($format,$type,$cat_parent,$global_cats);
|
||||
}
|
||||
|
||||
function delete($cat_id,$drop_subs,$modify_subs)
|
||||
function delete($data)
|
||||
{
|
||||
$this->cats->delete($cat_id,$drop_subs,$modify_subs);
|
||||
if (is_array($data))
|
||||
{
|
||||
$this->cats->delete($data);
|
||||
}
|
||||
}
|
||||
|
||||
function check_values($values)
|
||||
|
@ -530,11 +530,11 @@
|
||||
switch (get_var('subs',array('POST')))
|
||||
{
|
||||
case 'move':
|
||||
$this->bo->delete($this->cat_id,False,True);
|
||||
$this->bo->delete(array('cat_id' => $this->cat_id,'modify_subs' => True));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
break;
|
||||
case 'drop':
|
||||
$this->bo->delete($this->cat_id,True);
|
||||
$this->bo->delete(array('cat_id' => $this->cat_id,'drop_subs' => True));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user