Index: trunk/core/kernel/kbase.php =================================================================== diff -u -r2034 -r2093 --- trunk/core/kernel/kbase.php (.../kbase.php) (revision 2034) +++ trunk/core/kernel/kbase.php (.../kbase.php) (revision 2093) @@ -444,12 +444,13 @@ * Returns parent table information * * @param bool $from_temp load parent item from temp table + * @param string $special special of main item * @return Array */ - function getLinkedInfo() + function getLinkedInfo($special = '') { $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); - if ( $parent_prefix ) + if($parent_prefix) { // if this is linked table, then set id from main table $table_info = Array( @@ -460,7 +461,7 @@ 'ParentPrefix' => $parent_prefix ); - $main_object = $this->Application->recallObject($parent_prefix); + $main_object = $this->Application->recallObject($parent_prefix.'.'.$special); return array_merge($table_info, Array('ParentId'=> $main_object->GetDBField( $table_info['ParentTableKey'] ) ) ); } return false;