Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decodin #708

Closed
imonteiro opened this issue Jan 18, 2013 · 1 comment
Closed

Decodin #708

imonteiro opened this issue Jan 18, 2013 · 1 comment

Comments

@imonteiro
Copy link
Member

Original author: diegoalb...@gmail.com (February 23, 2010 15:59:13)

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: http://code.google.com/p/zfdatagrid/issues/detail?id=187

@imonteiro
Copy link
Member Author

From pao.fre...@gmail.com on February 23, 2010 19:48:15
Hi,

Thanks for this report.

This was already fixed on version 0.6

Best Regards,
Bento Vilas Boas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant