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

Inconsistency in result returned by eZContentObjectTreeNode::fetch()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Obsolete
    • Affects Version/s: 4.2.0, 4.3.0, 4.4.0, 4.5.0alpha
    • Fix Version/s: Future
    • Component/s: Misc
    • Labels:
      None

      Description

      eZContentObjectTreeNode::fetch() takes a single nodeID or an array of nodeIDs as parameter. But when an array is passed with only one entry in it, the method will not return an array, but a single eZContentObjectTreeNode instance.

      This is inconsistent. If an array is passed, it should return an array as well (even empty)

        Attachments

          Activity

            People

            Assignee:
            unknown unknown
            Reporter:
            jv@ez.no Jérôme Vieilledent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: