madcorp / zfdatagrid

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

Save and New Button redirects to Grid, if gridID is used.. #871

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $oGrid = Bvb_Grid::factory('Table', $oConfig, 'myid');
2. $form->setSaveAndAddButton(true); 
3. submit form using "Save an New" button

What is the expected output? 
Form should get shown again after saving Record, with some url like this:
zend.local/module/controller/action/perPagemyid/15/addmyid/record

What do you see instead?
but a empty grid with 'No Records found" message shows up, cause grid uses a 
url like 
zend.local/module/controller/action/perPagemyid/15/add/1

Please insert the appropriate values;
                    Zend Framework version: 1.11.6
ZFDatgrid Version (Bvb_Grid::getVersion()): Rev: 1927 
                          Operating system: Apache/2.2.16 (Debian)
                               PHP Version: 5.2.17
               Database Server and version: MySQL 5.1.63-0+squeeze1
                          Source Adatapter: MySQLi / libmysql - 5.0.51a

Original issue reported on code.google.com by bladesza...@gmail.com on 24 Jul 2012 at 10:29