mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 15:59:07 +01:00
update function add/edit
This commit is contained in:
parent
49f29fb0f5
commit
3593fadc84
@ -270,7 +270,12 @@
|
|||||||
|
|
||||||
if ($cat_main)
|
if ($cat_main)
|
||||||
{
|
{
|
||||||
$this->db2->query("Select cat_level from phpgw_categories where cat_id='$cat_parent'",__LINE__,__FILE__);
|
if (!$cat_parent)
|
||||||
|
{
|
||||||
|
$cat_parent = $cat_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->db2->query("select cat_level from phpgw_categories where cat_id='$cat_parent'",__LINE__,__FILE__);
|
||||||
$this->db2->next_record();
|
$this->db2->next_record();
|
||||||
$cat_level = $this->db2->f('cat_level')+1;
|
$cat_level = $this->db2->f('cat_level')+1;
|
||||||
|
|
||||||
@ -322,7 +327,12 @@
|
|||||||
|
|
||||||
if ($cat_main)
|
if ($cat_main)
|
||||||
{
|
{
|
||||||
$this->db2->query("Select cat_level from phpgw_categories where cat_id='$cat_parent'",__LINE__,__FILE__);
|
if (!$cat_parent)
|
||||||
|
{
|
||||||
|
$cat_parent = $cat_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->db2->query("select cat_level from phpgw_categories where cat_id='$cat_parent'",__LINE__,__FILE__);
|
||||||
$this->db2->next_record();
|
$this->db2->next_record();
|
||||||
$cat_level = $this->db2->f('cat_level')+1;
|
$cat_level = $this->db2->f('cat_level')+1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user