Index: trunk/core/kernel/db/dbitem.php =================================================================== diff -u -N -r8563 -r8719 --- trunk/core/kernel/db/dbitem.php (.../dbitem.php) (revision 8563) +++ trunk/core/kernel/db/dbitem.php (.../dbitem.php) (revision 8719) @@ -83,6 +83,16 @@ } /** + * Sets original field value (useful for custom virtual fields) + * + * @param string $field_name + */ + function SetOriginalField($field_name, $field_value) + { + $this->OriginalFieldValues[$field_name] = $field_value; + } + + /** * Set's default values for all fields * * @param bool $populate_ml_fields create all ml fields from db in config or not