Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2012 at 17:31 UTC
Updated:
13 Aug 2012 at 18:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
fenstratAttached patch fixes the notice. I checked all other components, only these two use
isset($value)and notisset($value[0]).This only happens on the first page reload after using the Save Draft button. This is because $value is a string (not an array). So if 'test' was submitted in textarea then $value = 'test' directly after submitting with Save Draft. However reloading the page $value = array(0 => 'test') and hence no PHP notice. Odd thing that this isn't an issue on 3.x. Perhaps due to the changes introduced in submission structure?
Comment #2
quicksketchThanks, sounds like a safe and easy improvement. Let's continue the more difficult problem solving over in #1704158: Nested components do not display saved draft values. Committed to 4.x branch (sorry still no official Git attribution, I'll look into Dreditor again, last time I tried it things went poorly).
Comment #3
fenstratGreat, thanks @quicksketch.