Skip to content
Permalink
Browse files

Implemented: Add a mechanism to prevent the usage of EntitySyncRemove

(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 8cc48ec568acc036ff6ac31ca1921da51eafe68b
Showing with 4 additions and 1 deletion.
  1. +4 −1 framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java
@@ -1,3 +1,4 @@
/*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -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) {

0 comments on commit 8cc48ec

Please sign in to comment.
You can’t perform that action at this time.