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

Manage EECAs on delegator.removeBy

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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 Mekika Leila

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment