Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11040

Manage EECAs on delegator.removeBy

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk, Release Branch 17.12, Release Branch 18.12
    • Fix Version/s: 17.12.01, Upcoming Branch, 18.12.01
    • Component/s: framework
    • Labels:
      None

      Description

      Currently, when you delete some entities through removeByAnd or removeByCondition, eeca aren't enable and the remove is quite as regard implemented rules.

      With

      <eca entity="GoodIndentification" operation="create-store-remove" event="return">
      <action service="indexProduct" mode="sync"/>
      </eca>
      

      And

      delegator.removeByAnd('GoodIdentification', [productId: 'WG-1111'])
      

      The service indexProduct wasn't call for the productId WG-1111

      To solve this situation, the idea would be delegator.removeValue for each element to delete when an eeca is present otherwise call the standard helper.removeByCondition.

       This patch OFBIZ-11040.patch provided by Leila Mekika

        Attachments

        1. OFBIZ-11040.patch
          3 kB
          Nicolas Malin
        2. OFBIZ-11040.patch
          2 kB
          Nicolas Malin

          Activity

            People

            • Assignee:
              soledad Nicolas Malin
              Reporter:
              soledad Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: