AshishJoshi-asj / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Decodin #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a basic grid inside a controller
2. Make a filter, then go to another controller
3. Get back to the grid

What is the expected output? What do you see instead?

Grid but recieved the following:

Message: Decoding failed: Syntax error

Stack trace:

#0 C:\home\lgecb.net\library\Bvb\Grid\DataGrid.php(1106): 
Zend_Json::decode('')
#1 C:\home\lgecb.net\library\Bvb\Grid\DataGrid.php(2648): 
Bvb_Grid_DataGrid->buildQueryWhere()
#2 C:\home\lgecb.net\library\Bvb\Grid\DataGrid.php(2689): 
Bvb_Grid_DataGrid->getQueryCount()
#3 C:\home\lgecb.net\library\Bvb\Grid\Deploy\Table.php(1858): 
Bvb_Grid_DataGrid->deploy()
#4 C:\home\lgecb.net\application\controllers\UserController.php(241): 
Bvb_Grid_Deploy_Table->deploy()
#5 C:\usr\share\lib\library\Zend\Controller\Action.php(513): 
UserController->listAction()
#6 C:\usr\share\lib\library\Zend\Controller\Dispatcher\Standard.php(289): 
Zend_Controller_Action->dispatch('listAction')
#7 C:\usr\share\lib\library\Zend\Controller\Front.php(954): 
Zend_Controller_Dispatcher_Standard-
>dispatch(Object(Zend_Controller_Request_Http), 
Object(Zend_Controller_Response_Http))
#8 C:\usr\share\lib\library\Zend\Application\Bootstrap\Bootstrap.php(97): 
Zend_Controller_Front->dispatch()
#9 C:\usr\share\lib\library\Zend\Application.php(366): 
Zend_Application_Bootstrap_Bootstrap->run()
#10 C:\home\lgecb.net\public_html\index.php(29): Zend_Application->run()
#11 {main}  
Request Parameters:

array (
  'module' => 'default',
  'controller' => 'user',
  'action' => 'list',
)  

What version of the product are you using? On what operating system?

XP SP3, 0.5

Please provide any additional information below.

We fixed the error adding the following line to the Bvb_Grid_DataGrid at 
line 1106         if(!empty($filters)) $filters = Zend_Json::decode ( 
$filters );

Original issue reported on code.google.com by diegoalb...@gmail.com on 23 Feb 2010 at 3:59

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for this report.

This was already fixed on version 0.6

Best Regards,
Bento Vilas Boas

Original comment by pao.fre...@gmail.com on 23 Feb 2010 at 7:48

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2010 at 4:56