Skip to content

Commit

Permalink
Implemented: Add a mechanism to prevent the usage of EntitySyncRemove
Browse files Browse the repository at this point in the history
(OFBIZ-10008)

Complete the previous commit on revision 1835296 [1] to add mechanism to prevent
 the usage of EntitySyncRemove also on function Delegator.removeByPrimaryKey

[1] https://svn.apache.org/viewvc?view=revision&revision=1835296

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866480 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
nmalin committed Sep 5, 2019
1 parent 7d7a441 commit 8cc48ec
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,3 +1,4 @@
/*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down Expand Up @@ -966,7 +967,9 @@ public int removeByPrimaryKey(GenericPK primaryKey) throws GenericEntityExceptio
ecaRunner.evalRules(EntityEcaHandler.EV_CACHE_CLEAR, EntityEcaHandler.OP_REMOVE, primaryKey, false);
this.clearCacheLine(primaryKey);

this.saveEntitySyncRemoveInfo(primaryKey);
if (saveEntitySyncRemoveInfo) {
this.saveEntitySyncRemoveInfo(primaryKey);
}

if (testMode) {
if (removedEntity != null) {
Expand Down

0 comments on commit 8cc48ec

Please sign in to comment.