Index: trunk/kernel/include/itemdb.php =================================================================== diff -u -r2882 -r3268 --- trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 2882) +++ trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 3268) @@ -106,6 +106,9 @@ function SetUniqueId($value) { $var = $this->IdField(); + + if( $this->UsingTempTable() ) $value = $this->UniqueId(); + $this->Set($var, $value); }