Index: trunk/kernel/include/itemdb.php =================================================================== diff -u -N -r721 -r810 --- trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 721) +++ trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 810) @@ -269,10 +269,9 @@ $this->SetModified($UpdatedBy); $sql = "UPDATE ".$this->tablename ." SET "; $first = 1; - foreach ($this->m_dirtyFieldsMap as $key => $value) { - if(!is_numeric($key) && $key != $this->IdField()) + if(!is_numeric($key) && $key != $this->IdField() && $key!='ResourceId') { if($first) { @@ -297,7 +296,7 @@ } } - $sql = sprintf("%s WHERE %s = '%s'",$sql, $this->IdField(), $this->UniqueId()); + $sql = sprintf("%s WHERE %s = '%s'",$sql, $this->IdField(), $this->UniqueId()); if($this->debuglevel>0) echo $sql."
"; @@ -386,7 +385,7 @@ { $this->Set("ResourceId", GetNextResourceId()); } - $sql = $this->CreateSql(); + $sql = $this->CreateSql(); if($this->debuglevel>0) echo $sql."
\n";