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

Profile of contact person not shown on quick add of contact in SFA

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 14.12, Trunk, Release Branch 15.12
    • Fix Version/s: 16.11.01
    • Component/s: None
    • Labels:
    • Sprint:
      Community Day 3 - 2016

      Description

      Steps to regenerate issue:
      1. Navigate to SFA.
      2. Enter 'First Name', 'Last Name' in 'Quick Add Contact' section and press 'Submit' button.

      Refer the attached screenshot to view the issue.

      1. OFBIZ-7816.patch
        1 kB
        Aditi Patidar
      2. quick add contact.png
        195 kB
        Aditi Patidar
      3. quick-add-contact-after-fix.png
        215 kB
        Aditi Patidar

        Issue Links

          Activity

          Hide
          aditi17 Aditi Patidar added a comment -

          Providing the patch to fix the issue. Here 'createContact' service was not returning 'roleTypeId' and it required to fetch the record from 'RoleTypeAndParty' entity.

          roleTypeId = parameters.roleTypeId;
          roleTypeAndParty = from("RoleTypeAndParty").where("partyId", parameters.partyId, "roleTypeId", roleTypeId).queryFirst();
          if ("ACCOUNT".equals(roleTypeId)) {
                  context.accountDescription = roleTypeAndParty.description;
              } else if ("CONTACT".equals(roleTypeId)) {
                  context.contactDescription = roleTypeAndParty.description;
              }
          
          Show
          aditi17 Aditi Patidar added a comment - Providing the patch to fix the issue. Here 'createContact' service was not returning 'roleTypeId' and it required to fetch the record from 'RoleTypeAndParty' entity. roleTypeId = parameters.roleTypeId; roleTypeAndParty = from( "RoleTypeAndParty" ).where( "partyId" , parameters.partyId, "roleTypeId" , roleTypeId).queryFirst(); if ( "ACCOUNT" .equals(roleTypeId)) { context.accountDescription = roleTypeAndParty.description; } else if ( "CONTACT" .equals(roleTypeId)) { context.contactDescription = roleTypeAndParty.description; }
          Hide
          aditi17 Aditi Patidar added a comment -

          Providing the screenshot of contact person profile after the fix.

          Show
          aditi17 Aditi Patidar added a comment - Providing the screenshot of contact person profile after the fix.
          Hide
          pandeypranay Pranay Pandey added a comment -

          Thanks Aditi for your contribution.
          Patch is committed to trunk r1761118, R15.12 r1761119 and R14.12 r1761120.

          Show
          pandeypranay Pranay Pandey added a comment - Thanks Aditi for your contribution. Patch is committed to trunk r1761118, R15.12 r1761119 and R14.12 r1761120.

            People

            • Assignee:
              pandeypranay Pranay Pandey
              Reporter:
              aditi17 Aditi Patidar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Agile