update delete cats

This commit is contained in:
ceb 2002-09-25 03:56:06 +00:00
parent 557c3842f2
commit 4e16995d6f
3 changed files with 8 additions and 12 deletions

View File

@ -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);
}
}

View File

@ -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)

View File

@ -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: