X-Git-Url: http://drupalcode.org/project/filefield_paths.git/blobdiff_plain/5dd723591cdc72b107da33db6679c0f93d69d4f8..7e844f1:/filefield_paths.module

diff --git a/filefield_paths.module b/filefield_paths.module
index c342411..e641ab0 100644
--- a/filefield_paths.module
+++ b/filefield_paths.module
@@ -257,6 +257,7 @@ function filefield_paths_entity_update($entity, $type) {
       $entity->revision = FALSE;
     }
     // Save any changes back to the database.
+    $entity->original = isset($entity->original) ? $entity->original : NULL;
     field_attach_update($type, $entity);
     if (isset($entity->revision)) {
       // Restore revision flag so that other modules can process it if needed.
