Index: trunk/core/kernel/utility/temp_handler.php =================================================================== diff -u -r2795 -r2796 --- trunk/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 2795) +++ trunk/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 2796) @@ -458,6 +458,7 @@ //delete already copied record from master temp table $query = 'DELETE FROM '.$this->GetTempName($master['TableName']).' WHERE '.$master['IdField'].' = '.$id_to_copy; + if (isset($master['Constrain'])) $query .= ' WHERE '.$master['Constrain']; $this->Conn->Query($query); } // when all of ids in current master has been processed, copy all sub-tables data