Hi Bento,
As refered in other tickets the titles defined by user
($grid->updateColumn(....)) are ignored when using setUseVerticalInputs(false).
To fix this I changed Grid/Deploy/Table.php. On line 2402, after:
if ($crud->getUseVerticalInputs() === false) {
$arr[0] = new Zend_Form_SubForm($formElements);
if ($formsCount > 1)
$arr[0]->addElement('checkbox', 'ZFIGNORE', array('label' => $this->__('Ignore'), 'order' => 0));
$arr[0]->setElementDecorators($crud->getSubformElementTitle());
add this code:
foreach ($this->_data['fields'] as $key => $title) {
if ($arr[0]->getElement($key)) {
$arr[0]->getElement($key)->setLabel($title['title']);
}
}
Now titles works fine with setUseVerticalInputs(false).
You agree with this code?
Regards
IM
Original issue reported on code.google.com by ivomonte...@gmail.com on 7 Feb 2012 at 7:19
Original issue reported on code.google.com by
ivomonte...@gmail.com
on 7 Feb 2012 at 7:19