Hi,
I wanted to have a personalize code for adding category on sitemgr db straight from my application’s site configuration. The problem was the primary key cat_id (field) from the egw_sitemgr_categories_lang was not auto_incremented. I added an entry to that table but the cat_id returns 0 and when i set a cat_id as +1 from the last cat_id on the table, it will result to a conflict cat_id when i used the sitemgr real “Add a Category”. I suspect that the sitemgr will track the last cat_id added from the sitemgr and i can’t find it.
This is the code i get from the Categories_UI class:
$cat_id = $cat_id ? $cat_id : $this->cat_bo->addCategory(’’,’’);
where $this->cat_bo was declared at its constructor as
$this->cat_bo = $GLOBALS[‘Common_BO’]->cats;
and i find this addCategory method from Categories_SO and Categories_BO.
I just wanted to know how this cat_id be tracked.
Thanks in advance.
Gil