Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Bug #13800 Invalid tutorials tree generation
Submitted: 2008-04-29 14:26 UTC
From: wrzasq Assigned: ashnazg
Status: Closed Package: PhpDocumentor (version 1.4.2)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.4.3    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 36 - 1 = ?

 
 [2008-04-29 14:26 UTC] wrzasq (Rafał Wrzeszcz)
Description: ------------ Tutorials tree is added to tutorials which have no children from previous same level tutorial. For example if you wish to have tree: Tut A |-- Tut B | |-- Tut B1 | `-- Tut B2 `-- Tut C You will have: Tut A |-- Tut B | |-- Tut B1 | `-- Tut B2 `-- Tut C |-- Tut B1 `-- Tut B2 It is problem with HTML converter. You can reproduce this bug using http://opentibia.svn.sourceforge.net/viewvc/opentibia/pot/trunk/ tutorials. Here is a solution: In Converter.inc, line 1994 replace: $res['tutorial'] = $this->tutorials[$btut->package][$btut->subpackage] [$btut->tutorial_type][$btut->name]; with: $res = array('tutorial' => $this->tutorials[$btut->package][$btut->subpackage] [$btut->tutorial_type][$btut->name]); Description: In this scope $res wasn't reset after each iteration so it contained previous sibling's tree since there was only if() action when new tree existed.

Comments

 [2009-08-30 13:57 UTC] ashnazg (Chuck Burgess)
-Status: Open +Status: Verified
Running current phpDoc SVN on PHP 5.2.10 against the opentibia trunk at the supplied Sourceforge URL, I do see at least two instances of the described behavior. Incorrect structure: * POT o Basics o Database + DAO objects # Accounts # Players # Guilds + List objects # Accounts # Players # Guilds o data/ directory resources + Global resources + Cache drivers o OTAdmin client + Global resources + Cache drivers o Additional routines + Server online status o POT in depth + Server online status o Additional info + PHK package + PHAR package + Deprecations + Creating framework + AAC scripts o Troubleshooting + PHK package + PHAR package + Deprecations + Creating framework + AAC scripts Correct structure, after applying Converter.inc fix: * POT o Basics o Database + DAO objects # Accounts # Players # Guilds + List objects o data/ directory resources + Global resources + Cache drivers o OTAdmin client o Additional routines + Server online status o POT in depth o Additional info + PHK package + PHAR package + Deprecations + Creating framework + AAC scripts o Troubleshooting
 [2009-08-30 13:57 UTC] ashnazg (Chuck Burgess)
-Status: Verified +Status: Assigned -Assigned To: +Assigned To: ashnazg
 [2009-08-30 14:08 UTC] ashnazg (Chuck Burgess)
-Status: Assigned +Status: Closed
The suggested change in Converter.inc solves the issue in my tests. Committed to SVN.