Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22997

Incorrect code documentation for method ContentService.prototype.loadContent()

    XMLWordPrintable

Details

    Description

      The example provided in the method documentation (CAPI.js: 3573 - JS REST client) ContentService.prototype.loadContent is incorrect. Default values for params:

      • fields,
      • responseGroups

      cannot be null (see screen-2.png). Browser tries to concatenate the params and finally creates an incorrect URL (see screen-1.png), because when concatenating null values the browser treats them as of value undefined.

      Attachments

        1. screen-1.png
          screen-1.png
          19 kB
        2. screen-2.png
          screen-2.png
          11 kB

        Activity

          People

            Unassigned Unassigned
            piotr.nalepa-obsolete@ez.no Piotr Nalepa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: