Index: trunk/kernel/frontaction.php =================================================================== diff -u -r4712 -r5254 --- trunk/kernel/frontaction.php (.../frontaction.php) (revision 4712) +++ trunk/kernel/frontaction.php (.../frontaction.php) (revision 5254) @@ -749,22 +749,22 @@ if($MissingCount==0) { $_POST = inp_striptags($_POST); - $fields_hash = Array( 'ParentId' => $objCatList->CurrentCategoryID(), - 'Name' => $_POST['name'], - 'Description' => $_POST['description'], - 'CreatedOn' => adodb_date('U'), - 'EditorsPick' => 0, - 'Status' => $perm, - 'HotItem' => 2, - 'NewItem' => 2, - 'PopItem' => 2, - 'Priority' => 0, - 'MetaKeywords' => $_POST['meta_keywords'], - 'MetaDescription' => $_POST['meta_description'], - 'AutomaticFilename' => 1, - 'Filename' => '', - 'CategoryTemplate' => '', - 'ItemTemplate' => '', + $fields_hash = Array( 'ParentId' => $objCatList->CurrentCategoryID(), + $objCatList->TitleField => $_POST['name'], + $objCatList->DescriptionField => $_POST['description'], + 'CreatedOn' => adodb_date('U'), + 'EditorsPick' => 0, + 'Status' => $perm, + 'HotItem' => 2, + 'NewItem' => 2, + 'PopItem' => 2, + 'Priority' => 0, + 'MetaKeywords' => $_POST['meta_keywords'], + 'MetaDescription' => $_POST['meta_description'], + 'AutomaticFilename' => 1, + 'Filename' => '', + 'CategoryTemplate' => '', + 'ItemTemplate' => '', ); $cat =& $objCatList->Add_NEW($fields_hash);