Problem/Motivation

I'm trying to use this module along with the super useful Webform Multiple (wfm) module. When I enable that module's functionality on a webform field/fieldset nothing get's pushed through to the gdoc. I have checked the reports (admin/reports/dblog) and I see the following notice webform_to_gdocs 09/29/2014 - 4:26pm Namespace Error.
I threw in a

if(module_exists('devel')){
            dpm($spreadsheet_column, "Spreadsheet Column");
            dpm($value, "Component Value");
          }

to webform_to_gdocs.module inside the foreach loop.
That results in the following

Spreadsheet Column => kids_name
Component Value =>
... (Array, 2 elements)
9#0|10#0 (String, 12 characters ) tester timmy
9#1|10#0 (String, 11 characters ) Little Suzy
Krumo version 0.2.1a | http://krumo.sourceforge.net Click to expand. Double-click to show path. Called from /home/joshua/public/reallifechurch.org/dev/public/sites/all/modules/webform_to_gdocs/webform_to_gdocs.module, line 101

Proposed resolution

Allow webform_to_gdocs to handle this sort of array.

If I come across a way of fixing this I'll be sure to post it... Very perplexing.

Comments

charlie-s’s picture

I don't have any time to devote to this module these days, but if you do solve this I would gladly accept a patch. I suppose that also means I'm looking for maintainers if that's appropriate, too.

redeight’s picture

I think I figured out what was happening. I added support for when the value passed into this module doesn't match the expected $value['0'] form. It now prepends the spreadsheet column to the row key and sets the value. So if the component had a key of "component_key" and the value in $submission->data is array("key0" => "value0", "key1" => "value1"), the necessary headers would be "component_key__key0" and "component_key__key1".