Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1063

Fix hasSchema method of FiltersBehavior

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.14
    • Fix Version/s: 2.4.15, 3.0.0
    • Component/s: Filters

      Description

      In the method hasSchema(doc, schema) of the behavior Nuxeo.FiltersBehavior located in the file nuxeo-app.html of the Nuxeo 10.10 distribution:

      Orignal code reads:

          hasSchema(doc, schema) {
            return doc && doc.schemas && doc.schemas.some((sch) => sch.prefix === schema || schema.name === schema);
          },
      

      schema.name should be replaced by sch.name.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 35 minutes
                  1h 35m