fixed creation of sub-cats, to automaticaly set the main-cat (as it already set the level) from the parent

This commit is contained in:
Ralf Becker 2004-05-24 09:29:30 +00:00
parent b30b9bd9c0
commit da83e39c89

View File

@ -581,6 +581,7 @@
if ($values['parent'] > 0)
{
$values['level'] = $this->id2name($values['parent'],'level')+1;
$values['main'] = $this->id2name($values['parent'],'main');
}
$values['descr'] = $this->db->db_addslashes($values['descr']);