Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-12200

Uncaught TypeError in JavaScript console when saving reverse relationship

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      OpenIDM Sprint 7.0-0
    • Support Ticket IDs:

      Description

      Problem

      Uncaught TypeError in JavaScript console when saving reverse relationship with managed objects.

       

      To reproduce

      Using 6.0.0.3 using Chrome as the browser (open the developer console):

      1). Create two managed objects: test1 and test2

      2). In test1 add a property named testproperty of type Relationship

      3). Edit the property and select the 'Related Resource' as test2. 

      4). Click the Two-way Relationship option and then choose 'Has one'

      5). Enter a value in the 'Reverse property name' field that does not exist (there are no properties on the test2 object).

      6). Click Save and note the following in the Chrome console:

      Uncaught TypeError: Cannot read property 'concat' of undefined
          at RelationshipTypeView.js?v=6.0.0.3:669
          at Array.reduce (<anonymous>)
          at RelationshipTypeView.js?v=6.0.0.3:668
          at Array.map (<anonymous>)
          at L.i.applyConfigChanges (RelationshipTypeView.js?v=6.0.0.3:656)
          at L.i.getValue (RelationshipTypeView.js?v=6.0.0.3:710)
          at L.i.getCurrentFormValue (SchemaPropertyView.js?v=6.0.0.3:258)
          at L.i.makeChanges (SchemaPropertyView.js?v=6.0.0.3:358)
          at L.i.n [as makeChanges] (lodash-3.10.1-min.js:26)
          at L.i.dataHandler (RelationshipTypeView.js?v=6.0.0.3:422)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.browne Jason Browne
                Reporter:
                andy.itter Andy Itter
                QA Assignee:
                Alexander Dracka
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: