zfdatagrid / grid

A DataGrid library for Zend Framework
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

Using 'disabled' while editing blanks the value of the field. #850

Closed imonteiro closed 11 years ago

imonteiro commented 11 years ago

Original author: mdekke...@gmail.com (December 08, 2008 10:40:55)

I read in the SVN that we can now set attributes:


When use forms we now have the ability to set fields attributes, like style, class, etc, etc.

$lastName = new Bvb_Grid_Form_Column ( 'lastname' ); $lastName->title ( 'Last name' ) ->attributes(array('style'=>'width:50%','disabled'=>'disabled'))

->description ( 'Your last name' )

When I do this and I edit a record, the 'disabled' field will be empty. I think there should be a check somewhere that leaves out disabled fields from the mysql update statement.

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=15

imonteiro commented 11 years ago

From pao.fre...@gmail.com on December 08, 2008 21:23:56 Security measures added to make sure no one is bypassing the attribute. (like the tamperdata, webdeveloper extension, etc, etc)