You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/10/19 13:40:37 UTC

[60/78] [abbrv] git commit: ISIS-864: guard to NOT persist commands if objects are dirtied as side-effect of 'seed' services (as Estatio and the security module both use).

ISIS-864: guard to NOT persist commands if objects are dirtied as side-effect of 'seed' services (as Estatio and the security module both use).


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/ad9b445f
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/ad9b445f
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/ad9b445f

Branch: refs/heads/master
Commit: ad9b445f7f470d9f7184fb3e5736858001f32069
Parents: 91452a7
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Oct 15 00:35:30 2014 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Fri Oct 17 00:54:53 2014 +0100

----------------------------------------------------------------------
 .../isis/core/runtime/system/transaction/IsisTransaction.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/ad9b445f/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
index dfb1925..f98c804 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
@@ -745,7 +745,7 @@ public class IsisTransaction implements TransactionScopedComponent {
 
         // ensure that any changed objects means that the command should be persisted
         final Set<ObjectAdapter> changedAdapters = findChangedAdapters(changedObjectProperties);
-        if(!changedAdapters.isEmpty()) {
+        if(!changedAdapters.isEmpty() && command.getMemberIdentifier() != null) {
             command.setPersistHint(true);
         }