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

Cannot parse date variable value in IE 11

    XMLWordPrintable

Details

    Description

      Given
      I've a workflow with two embedded forms that contain the following date field

            <input type="text" 
                   cam-variable-name="from"
                   cam-variable-type="Date"
                   required
                   datepicker-popup="yyyy-MM-dd'T'HH:mm:ss"
                   is-open="dateFieldOpened"
                   class="form-control" />
      

      When
      I enter a date value in the first form and complete it

      Then
      the second form cannot be loaded in ie 11

      Error Message

      Error: Value 'Invalid Date' is not of type Date
         at l (http://localhost:8080/camunda/app/tasklist/scripts/camunda-tasklist-ui.js?bust=7.9.2-SNAPSHOT-1531237077803:39:9391)
         at applyValue (http://localhost:8080/camunda/app/tasklist/scripts/camunda-tasklist-ui.js?bust=7.9.2-SNAPSHOT-1531237077803:39:7730)
         at CamundaForm.prototype.applyVariables (http://localhost:8080/camunda/app/tasklist/scripts/camunda-tasklist-ui.js?bust=7.9.2-SNAPSHOT-1531237077803:39:3169)
         at Anonymous function (http://localhost:8080/camunda/app/tasklist/scripts/camunda-tasklist-ui.js?bust=7.9.2-SNAPSHOT-1531237077803:38:29733)
         at e (http://localhost:8080/camunda/app/tasklist/scripts/camunda-tasklist-ui.js?bust=7.9.2-SNAPSHOT-1531237077803:34:20137)
         at Scope.prototype.$eval (http://localhost:8080/camunda/lib/deps.js?bust=7.9.2-SNAPSHOT-1531237077803:17553:9)
         at Scope.prototype.$apply (http://localhost:8080/camunda/lib/deps.js?bust=7.9.2-SNAPSHOT-1531237077803:17651:11)
         at h.done (http://localhost:8080/camunda/app/taskl
      

      Hint
      Seems that IE does not support the date variable parsing in https://github.com/camunda/camunda-bpm-sdk-js/blob/2942d6916e5790d802d29aeabf4c287744bd918f/lib/forms/variable-manager.js#L118

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              michael.schoettes Michael Schoettes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce