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

Bug #8170 updateRowAttributes & one column
Submitted: 2006-07-09 05:15 UTC
From: coder at darkk dot net dot ru Assigned: wiesemann
Status: Closed Package: HTML_Table (version 1.7.1)
PHP Version: 4.4.0 OS: Linux Slackware 10.2
Roadmaps: (Not assigned)    
Subscription  


 [2006-07-09 05:15 UTC] coder at darkk dot net dot ru (Leonid)
Description: ------------ I create table with single column and apply styles to some rows. Now I have table with single column. After I run toHtml method I have table with two columns. In my opinion toHtml should not modify maximal number of columns. I've seen bug like this (#4656) but it was closed year ago and seems this bug occures in latest release too. I've not tried CVS version yet. Test script: --------------- Script is at: http://darkk.net.ru/pear/test.php Code is viewable at: http://darkk.net.ru/pear/test.php.txt Expected result: ---------------- I expect to see table with single column :)

Comments

 [2006-07-09 13:01 UTC] wiesemann (Mark Wiesemann)
To be precise, it's the updateAttributes() call that makes the trouble here. If it's not there, the problem does not occur. I'll analyze this a bit more and try to find a solution.
 [2006-07-09 13:15 UTC] coder at darkk dot net dot ru
You're right, updateAttributes shoots.
 [2006-07-09 13:21 UTC] wiesemann (Mark Wiesemann)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/HTML_Table --- The problem was a call of _adjustEnds() to columns with index 1 which therefore added the second column. This was the problem in updateRowAttributes() and setRowAttributes(). Thanks for noting this.
 [2006-07-09 13:42 UTC] coder at darkk dot net dot ru
Thank you for quick fix.