Index: branches/5.2.x/core/units/category_items/category_items_dbitem.php =================================================================== diff -u -N -r14244 -r14628 --- branches/5.2.x/core/units/category_items/category_items_dbitem.php (.../category_items_dbitem.php) (revision 14244) +++ branches/5.2.x/core/units/category_items/category_items_dbitem.php (.../category_items_dbitem.php) (revision 14628) @@ -1,6 +1,6 @@ getLinkedInfo(); + return '(CategoryId=' . $this->GetID() . ' AND ' . $table_info['ForeignKey'] . '=' . $table_info['ParentId'] . ')'; + } - /** - * Returns part of SQL WHERE clause identifing the record, ex. id = 25 - * - * @access public - * @param string $method Child class may want to know who called GetKeyClause, Load(), Update(), Delete() send its names as method - * @return void - * @see kDBItem::Load() - * @see kDBItem::Update() - * @see kDBItem::Delete() - */ - function GetKeyClause($method=null) - { - $table_info = $this->getLinkedInfo(); - return '(CategoryId='.$this->ID.' AND '.$table_info['ForeignKey'].'='.$table_info['ParentId'].')'; - } - - /** - * Generate and set new temporary id - * - * @access private - */ - function setTempID() - { - // don't set temp id for this item - } - - } \ No newline at end of file + /** + * Generate and set new temporary id + * + * @return void + * @access public + */ + public function setTempID() + { + // don't set temp id for this item + } +} \ No newline at end of file