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

Wrong entity condition expression for fetching the view entity PartyAndContactMech.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Important

    Description

      In party module present in application component the file PartyContactMechServices.xml containing simple-method createPartyEmailAddress (meant for creating an email address for party) is using wrong entity condition expression for fetching the view entity PartyAndContactMech.
      It is using from-field attribute for the comaprison of a constant value instead of the value attribute.

      Current Code:

      <entity-condition list="partyAndContactMechs" entity-name="PartyAndContactMech">
      <condition-list combine="and">
      <condition-expr field-name="partyId" from-field="parameters.partyId"/>
      <condition-expr field-name="contactMechTypeId" from-field="EMAIL_ADDRESS"/>
      <condition-expr field-name="infoString" from-field="parameters.emailAddress" ignore-case="true"/>
      </condition-list>
      </entity-condition>

      Corrected Code:

      <entity-condition list="partyAndContactMechs" entity-name="PartyAndContactMech">
      <condition-list combine="and">
      <condition-expr field-name="partyId" from-field="parameters.partyId"/>
      <condition-expr field-name="contactMechTypeId" value="EMAIL_ADDRESS"/>
      <condition-expr field-name="infoString" from-field="parameters.emailAddress" ignore-case="true"/>
      </condition-list>
      </entity-condition>

      Attachments

        Activity

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

          People

            jleroux Jacques Le Roux
            vineet vineet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment