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

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 (version 0.1.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-07-17 10:59 UTC] alexkunin at gmail dot com (Alex Kunin)
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'; }

Comments

 [2006-07-17 19:31 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!