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

Bug #9992 orderBy=0 is lost in _parseHttpRequest()
Submitted: 2007-01-31 14:27 UTC Modified: 2007-02-01 06:56 UTC
From: michael dot mauch at gmx dot de Assigned: wiesemann
Status: Closed Package: Structures_DataGrid (version 0.8.1)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    

 [2007-01-31 14:27 UTC] michael dot mauch at gmx dot de (Michael Mauch)
Description: ------------ Hi, with DATAGRID_SOURCE_ARRAY, I can't sort for the first (zeroth) column, because orderBy=0 and _parseHttpRequest() has a line if ($orderBy = $this->_getRequestArgument('orderBy')) { instead of if (($orderBy = $this->_getRequestArgument('orderBy')) !== null) { Regards... Michael Test script: --------------- <?php require 'Structures/DataGrid.php'; $values = array(array("A1","Bx1","C1",), array("A2","Bc2","C2",), array("A3","Bz3","C3",), ); $datagrid =& new Structures_DataGrid(); $test = $datagrid->bind($values, null, DATAGRID_SOURCE_ARRAY); if (PEAR::isError($test)) { echo $test->getMessage(); } $test = $datagrid->render(); if (PEAR::isError($test)) { echo $test->getMessage(); } ?> Expected result: ---------------- The sort links should work for all columns. Actual result: -------------- Column 0 cannot be sorted.


 [2007-02-01 06:56 UTC] wiesemann (Mark Wiesemann)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.