omusico / zfdatagrid

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

FormatterNumber ignores options if locale is not specified #849

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use $grid->updateColumn('field', array('format' => array('number', 
array('number_format' => '#0.00'))));

What is the expected output? 
Number should be formatted according to specified format

What do you see instead?
Format is ignored

Please insert the appropriate values;
                    Zend Framework version:1.11.1
ZFDatgrid Version (Bvb_Grid::getVersion()):0.8
                          Operating system:Linux (openSuse 12.1)
                               PHP Version: 5.3.2
               Database Server and version: Oracle 10g
                          Source Adatapter: pdo_oci

Attached is a patch that fixed it for me.

Original issue reported on code.google.com by roets.ma...@gmail.com on 13 Apr 2012 at 2:19

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Fixed and committed - r1905.

Thanks.

Best Regards
Ivo Monteiro

Original comment by ivomonte...@gmail.com on 15 Apr 2012 at 2:04