#5764: HtmlHelper::tableCells bug when using TD options in first cell --------------------------------------+------------------------------------- Reporter: sneeka2 | Type: Bug Status: new | Priority: Low Milestone: 1.2.x.x | Component: Helpers Version: RC3 | Severity: Minor Keywords: htmlhelper tablecells | Php_version: n/a Cake_version: | --------------------------------------+------------------------------------- {{{ $tr = array( array('td1 content', array('someattribute' => 'somevalue')), 'td2 content', 'td3 content' ); }}}
breaks the HtmlHelper::tableCells behaviour, as this test on line 491 fails: {{{ if (empty($data[0]) || !is_array($data[0])) { $data = array($data); } }}} The workaround is to wrap the input data into an extra array(), but it is still unexpected behaviour that throws errors. -- Ticket URL: <https://trac.cakephp.org/ticket/5764> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---