Merge pull request #10713 from YevhenBondarenko/fix/rule-chain-relations

fixed removing relations between rule nodes
This commit is contained in:
Andrew Shvayka 2024-05-03 18:45:39 +03:00 committed by GitHub
commit 85f2047c8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,6 +197,7 @@ public class BaseRuleChainService extends AbstractEntityService implements RuleC
List<RuleNodeUpdateResult> updatedRuleNodes = new ArrayList<>();
List<RuleNode> existingRuleNodes = getRuleChainNodes(tenantId, ruleChainMetaData.getRuleChainId());
for (RuleNode existingNode : existingRuleNodes) {
relationService.deleteEntityRelations(tenantId, existingNode.getId());
Integer index = ruleNodeIndexMap.get(existingNode.getId());
RuleNode newRuleNode = null;
if (index != null) {