Home » Structures » Structures_DataGrid_Renderer_Smarty » Bug #8233
No possibility to render current sorting column/direction
Details
| Request #8233 | No possibility to render current sorting column/direction |
|---|---|
| Submitted | 2006-07-17 10:59 UTC |
| From | alexkunin at gmail dot com |
| Assigned | wiesemann |
| Status | Closed |
| Package | Structures_DataGrid_Renderer_Smarty |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-07-17 10:59 UTC] alexkunin at gmail dot com
Description:
------------
For each column this renderer passes to Smarty only 'label' and 'link' values. But these values are not enough to find out if this particular column is current and is it ASC of DESC.
Test script:
---------------
This patch works for me (hopefully will work for others too):
--- old\Smarty.php Mon Jul 17 13:52:26 2006
+++ Smarty.php Mon Jul 17 13:53:15 2006
@@ -217,6 +217,7 @@
} else {
$direction = 'ASC';
}
+ $prepared[$index]['current'] = $direction;
} else {
$direction = 'ASC';
}