madcorp / zfdatagrid

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

Setting grid's noOrder parameter to true causes twice translated column names #883

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
$grid = new Bvb_Grid_Deploy_Table();
$grid->setSource(...);
grid->setNoOrder(true);
...
echo $grid->deploy();

What is the expected output? What do you see instead?
Bvb_Grid function '__' for traslating is called twice. For the first time in 
Bvb_Grid::_buildTitles and for second time in 
Bvb_Grid_Deploy_Table::_buildTitlesTable.
I think there is error in Bvb_Grid_Deploy_Table at line 1049:
http://code.google.com/p/zfdatagrid/source/browse/trunk/library/Bvb/Grid/Deploy/
Table.php#1049

Please insert the appropriate values;
                    Zend Framework version: 1.11.1
ZFDatgrid Version (Bvb_Grid::getVersion()): 0.8
                          Operating system: CentOS 5
                               PHP Version: 5.3
               Database Server and version: MySQL 5.5
                          Source Adatapter: Bvb_Grid_Source_Zend_Select

Please provide any additional information below.

Original issue reported on code.google.com by jan.krep...@invia.cz on 1 Nov 2012 at 4:06