mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
update delete cats
This commit is contained in:
parent
a8b4146b4e
commit
1e7e23d21c
@ -427,19 +427,27 @@
|
||||
|
||||
if ($GLOBALS['HTTP_POST_VARS']['confirm'])
|
||||
{
|
||||
switch ($GLOBALS['HTTP_POST_VARS']['subs'])
|
||||
if ($GLOBALS['HTTP_POST_VARS']['subs'])
|
||||
{
|
||||
case 'move':
|
||||
$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(array('cat_id' => $this->cat_id, 'drop_subs' => True));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
break;
|
||||
default:
|
||||
$error_msg = lang('Please choose one of the methods to handle the subcategories');
|
||||
break;
|
||||
switch ($GLOBALS['HTTP_POST_VARS']['subs'])
|
||||
{
|
||||
case 'move':
|
||||
$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(array('cat_id' => $this->cat_id, 'drop_subs' => True));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
break;
|
||||
default:
|
||||
$error_msg = lang('Please choose one of the methods to handle the subcategories');
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->bo->delete(array('cat_id' => $this->cat_id));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -531,19 +531,27 @@
|
||||
|
||||
if (get_var('confirm',array('POST')))
|
||||
{
|
||||
switch (get_var('subs',array('POST')))
|
||||
if (get_var('subs',array('POST')))
|
||||
{
|
||||
case 'move':
|
||||
$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(array('cat_id' => $this->cat_id,'drop_subs' => True));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
break;
|
||||
default:
|
||||
$error_msg = lang('Please choose one of the methods to handle the subcategories');
|
||||
break;
|
||||
switch (get_var('subs',array('POST')))
|
||||
{
|
||||
case 'move':
|
||||
$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(array('cat_id' => $this->cat_id,'drop_subs' => True));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
break;
|
||||
default:
|
||||
$error_msg = lang('Please choose one of the methods to handle the subcategories');
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->bo->delete(array('cat_id' => $this->cat_id));
|
||||
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php',$link_data));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user