Hi,
Changes to the set_row_attribs function for tables in r4853 mean that the add_row function always has to be called first if you want to set attributes on the first row of a table. Setting attributes on subsequent rows is unchanged. For example, before r4853:
$table = new html_table(array('cols' => 1)); $table->set_row_attribs(array('id' => 'rcmrow1')); $table->add(null, 'first row');
Would have given the first row an id of rcmrow1. But now you have to do:
$table = new html_table(array('cols' => 1)); $table->add_row(); $table->set_row_attribs(array('id' => 'rcmrow1')); $table->add(null, 'first row');
I am not sure if this is an intended change or a bug. Does anyone know?
Phil
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 2011-06-18 11:52, Phil Weir wrote:
I am not sure if this is an intended change or a bug. Does anyone know?
Fixed in r4867.