Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-91577

Inconsistent logic applied on DDLRecordLocalServiceImpl api methods to obtain ClassName

    Details

    • Branch Version/s:
      7.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      2

      Description

      The method to obtain className in DDLRecordLocalServiceImpl differs in addRecord and updateRecord method.
      In addRecord the className is obtained with a function, but in updateRecord method, the className is hardcoded with "DDLRecord.class.getName()"
       

      If you use the api for update a DDLFormRecord in 7.0, a new ddlrecord is created duplicating the original DDLFormRecord.

      Steps to reproduce (7.0.x).

      1. Create a workflow using the attached xml definition.
      2. Create a Form with 2 fields, one of this fields must be named "hidd", you could leave it blank.
      3. Associate the workflow with the form.
      4. Drop the form in a page and submit a new entry.

      Expected Behaviour:

      A new workflow task is created with asset type "Form Record". The field "hidd" has the user full name.

      Only one workflow task and notification is created for the approver.

      Current Behaviour:

      Two workflow tasks are created, one with Asset type "Form Record" the other one with "Dynamic Data List" type.

      Two notifications are sent, one of them generate the attached stacktrace when you click to see the details.

        Attachments

        1. error trace notification DDLRecord.txt
          28 kB
        2. issue.PNG
          issue.PNG
          51 kB
        3. issue2.PNG
          issue2.PNG
          6 kB
        4. QA_Validation_Mar18-LPS91577.gif
          QA_Validation_Mar18-LPS91577.gif
          3.21 MB
        5. QA_Validation_Mar18-LPS91577-2.gif
          QA_Validation_Mar18-LPS91577-2.gif
          1.64 MB
        6. wf-test-with-act.xml
          7 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                31 weeks, 6 days ago

                Packages

                Version Package
                7.1.3 CE GA4
                7.1.10 DXP FP11
                7.1.X
                Master