Index: branches/unlabeled/unlabeled-1.26.16/core/kernel/utility/temp_handler.php =================================================================== diff -u -r6873 -r7368 --- branches/unlabeled/unlabeled-1.26.16/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 6873) +++ branches/unlabeled/unlabeled-1.26.16/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 7368) @@ -43,14 +43,14 @@ */ var $Conn; - + /** * Window ID of current window * * @var mixed */ var $WindowID = ''; - + function kTempTablesHandler() { parent::kBase(); @@ -125,7 +125,7 @@ function BuildTables($prefix, $ids) { $this->WindowID = $this->Application->GetVar('m_wid'); - + $this->TableIdCounter = 0; $tables = Array( 'TableName' => $this->Application->getUnitOption($prefix, 'TableName'), @@ -135,12 +135,12 @@ 'TableId' => $this->TableIdCounter++, ); - $parent_prefix = $this->Application->getUnitOption($prefix, 'ParentPrefix'); + /*$parent_prefix = $this->Application->getUnitOption($prefix, 'ParentPrefix'); if ($parent_prefix) { $tables['ForeignKey'] = $this->Application->getUnitOption($prefix, 'ForeignKey'); $tables['ParentPrefix'] = $parent_prefix; $tables['ParentTableKey'] = $this->Application->getUnitOption($prefix, 'ParentTableKey'); - } + }*/ $this->FinalRefs[ $tables['TableName'] ] = $tables['TableId']; // don't forget to add main table to FinalRefs too