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

Empty managed object results in error when adding relationships elsewhere

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.5.0.1
    • Fix Version/s: None
    • Labels:
    • Target Version/s:
    • Story Points:
      2

      Description

      Came across a bug when trying to create a relationship in the UI ( i.e. add object X as a child of object Y). Pressing the add button resulted in nothing happening and an error.

      Console reported: TypeError: property is undefined

      Debug tracked this down to following code:

      .each(managedObjects.objects, .bind(function (managed) {
      var fields = _.filter(managed.schema.order, function (propName)

      { var property = managed.schema.properties[propName]; return property.type === "string" && property.viewable && !property.encryption && property.scope !== "private" && !property.isVirtual; }

      );

      And turns out the error resulted from an errant managed object Z, completely unrelated to X and Y, which was empty (had no attributes defined).

        Attachments

          Activity

            People

            Assignee:
            huck.elliott Huck Elliott
            Reporter:
            wayne.blacklock Wayne Blacklock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: