Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2012-08-24 23:05:19 +0000
committerRoberto E. Escobar2012-08-24 23:05:19 +0000
commite75997952fd0e6d80cd4b77c226e2980b6afd02a (patch)
treee09c07323fce0ca553c2a6b7a387f1cd8d86c793
parent795adead073f39b2552268447885e6f9cdd8f790 (diff)
downloadorg.eclipse.osee-e75997952fd0e6d80cd4b77c226e2980b6afd02a.tar.gz
org.eclipse.osee-e75997952fd0e6d80cd4b77c226e2980b6afd02a.tar.xz
org.eclipse.osee-e75997952fd0e6d80cd4b77c226e2980b6afd02a.zip
bug: Return OseeSystem for Artifact.getLastModifiedBy when transRecord.author == 0
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
index d737ee101f1..16d2f841f9f 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
@@ -1743,7 +1743,7 @@ public class Artifact extends NamedIdentity<String> implements IArtifact, IAdapt
public final User getLastModifiedBy() throws OseeCoreException {
TransactionRecord transactionRecord = getTransactionRecord();
- if (transactionRecord == null) {
+ if (transactionRecord == null || transactionRecord.getAuthor() == 0) {
return UserManager.getUser(SystemUser.OseeSystem);
}
return UserManager.getUserByArtId(transactionRecord.getAuthor());

Back to the top