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

Manage EECAs on delegator.removeBy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Release Branch 18.12, Release Branch 17.12, Trunk
    • 17.12.01, 18.12.01
    • framework
    • 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 mleila

      Attachments

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

        Activity

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: