Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11176

Embedded forms display undefined select option

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.12.0, 7.10.13, 7.11.7
    • Fix Version/s: 7.13.0, 7.12.1, 7.13.0-alpha1
    • Component/s: tasklist
    • Labels:

      Description

      When using generated form, the select form displays an empty "undefined" option
      This is removed once the user selects an option

      Root cause
      1. We fetch variables asynchronously to prefill the form with values already present in the process variables. At this moment, no value is selected
      2. During the async request, angular enters a digest cycle. Because the selected Value is undefined, it creates a new option
      3. Once fetched, the Value is set correctly, but the undefined value remains. It seems that we do not force angular to re-render the form again
      4. with user-input, angular "notices" changes and removes the undefined option

      Possible solution
      Run `angular.apply()` to force an angular update when selecting the value

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              akif.hazarvi Akif Hazarvi
              Reporter:
              martin.stamm Martin Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: