#013155: ezcTreeXmlInternalDataStore::fetchDataForNode fetches data for wrong nodes

Description:

on line 77 of xml_internal.php:

$dataElem = $elem->getElementsByTagNameNS( 'http://components.ez.no/Tree/dataurl', 'data' )->item( 0 );

if the current node has not "data" element, but has children that have it, no exception or error is raised, but the data from the first child is used (because of getElementsByTagNameNS definition).

EG:
<node id="Informazioni"><!--<etd:data>Informazioni</etd:data>-->
<node id="Press_Kit"><etd:data>Press Kit</etd:data></node>
</node>


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. 8294.

#257016 by Derick Rethans on June 10th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Tree
Affects 2008.1beta1 - eZ components 2008.1beta1
Fix Version 2008.1RC1 - eZ components 2008.1RC1
Reporter Gaetano Giunta
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created June 7th, 2008
Updated June 10th, 2008
Resolved June 10th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels