forked from extern/egroupware
fixed bug with not saved description in preferences::add
This commit is contained in:
parent
577f5eb5b7
commit
8ea71d2f7d
@ -561,8 +561,8 @@
|
|||||||
$values['level'] = $this->id2name($values['parent'],'level')+1;
|
$values['level'] = $this->id2name($values['parent'],'level')+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cat_values['descr'] = $this->db->db_addslashes($cat_values['descr']);
|
$values['descr'] = $this->db->db_addslashes($values['descr']);
|
||||||
$cat_values['name'] = $this->db->db_addslashes($cat_values['name']);
|
$values['name'] = $this->db->db_addslashes($values['name']);
|
||||||
|
|
||||||
if ($values['id'] > 0)
|
if ($values['id'] > 0)
|
||||||
{
|
{
|
||||||
@ -572,8 +572,8 @@
|
|||||||
|
|
||||||
$this->db->query('INSERT INTO phpgw_categories (' . $id_col . 'cat_parent,cat_owner,cat_access,cat_appname,cat_name,cat_description,cat_data,'
|
$this->db->query('INSERT INTO phpgw_categories (' . $id_col . 'cat_parent,cat_owner,cat_access,cat_appname,cat_name,cat_description,cat_data,'
|
||||||
. 'cat_main,cat_level, last_mod) VALUES (' . $id_val . intval($values['parent']) . ',' . $this->account_id . ",'" . $values['access']
|
. 'cat_main,cat_level, last_mod) VALUES (' . $id_val . intval($values['parent']) . ',' . $this->account_id . ",'" . $values['access']
|
||||||
. "','" . $this->app_name . "','" . $values['name'] . "','" . $cat_values['descr'] . "','" . $values['data']
|
. "','" . $this->app_name . "','" . $values['name'] . "','" . $values['descr'] . "','" . $values['data']
|
||||||
. "'," . intval($cat_values['main']) . ',' . intval($values['level']) . ',' . time() . ')',__LINE__,__FILE__);
|
. "'," . intval($values['main']) . ',' . intval($values['level']) . ',' . time() . ')',__LINE__,__FILE__);
|
||||||
|
|
||||||
if ($values['id'] > 0)
|
if ($values['id'] > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user