Closed (fixed)
Project:
TableField
Version:
7.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2011 at 10:33 UTC
Updated:
3 Nov 2011 at 15:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
kevin hankens commentedThanks for the notice. If there is no default value, it kind of throws up :) The attached patch should fix that.
Comment #2
kevin hankens commentedCommitted to 7.x-2.0-beta4.
Thx!
Comment #3
carylson commentedRan into an issue with this fix, as the $instance['default_value'][$delta]['tablefield'] array doesn't necessarily contain a value for every cell in the table, as this fix assumes it does.
IMO a better fix would be the following on line 328:
$instance_default = isset($instance['default_value'][$delta]['tablefield']["cell_{$i}_{$ii}"]) ? $instance['default_value'][$delta]['tablefield']["cell_{$i}_{$ii}"] : array();
Instead of:
$instance_default = isset($instance['default_value'][$delta]) ? $instance['default_value'][$delta]['tablefield']["cell_{$i}_{$ii}"] : array();
Regards
Comment #4
simon georges commentedCross-referencing #1217634: Error messages when changes number of rows/columns or upload csv file.
Comment #5
amfis commentedFix mentioned in #3 works as expected.
Comment #6
arbel commented#3 works here too +1
Comment #7
kevin hankens commentedSorry for the delay. Committed to master.