AshishJoshi-asj / zfdatagrid

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

"field" index not found when using "hRow" and "DetailColumns" on different rows #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ->setDetailColumns()
2. ->updateColumn(<name>, array('hRow' => 1));

What is the expected output? What do you see instead?
Expected output ? Almost the waited one, just this PHP notice : "Notice:
Undefined index: field in
/home/m.thomas/www/stamp/trunk/libs/Bvb/Grid/Deploy/Table.php on line 937"

It seems, because of a 'hRow' for one column, that DetailColumn is parsed
as a common column : a "field" key is searched in its properties, whereas
this kind of field has no "field" key.

What version of the product are you using? On what operating system?
v6 alpha, under Linux Fedora

Please provide any additional information below.

Original issue reported on code.google.com by tribal...@gmail.com on 15 Feb 2010 at 4:36

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the report.

Fixed.

Update to Revision 606

Best Regards,
Bento Vilas Boas

Original comment by pao.fre...@gmail.com on 15 Feb 2010 at 5:18

GoogleCodeExporter commented 9 years ago
Issue seems not to be fixed. Already the same notice.
Around line 937, we can see all fields are parsed, and each "field" key is 
tried to
be processed. For columns which have no "field" field, why not just check if a
"field" key exists or not ?

Original comment by tribal...@gmail.com on 16 Feb 2010 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2010 at 4:56