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

error in children list count in admin 2 / ezjscore

    XMLWordPrintable

    Details

      Description

      when a node has no child items, the ezjscServerFunctionsNode::subTree() method, called via ezjscore to load the list of children, gives back some funny data:

      total_count = 0, count = 1

      this happens because 'count' => count( $nodeArray ), and $nodeArray = false; instead of being $nodeArray = array();, and of course in php, count(false)===1

        Attachments

          Activity

            People

            • Assignee:
              unknown unknown
              Reporter:
              gg Gaetano Giunta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: