Closed (fixed)
Project:
Webform
Version:
7.x-4.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Mar 2015 at 19:21 UTC
Updated:
11 Apr 2015 at 03:14 UTC
Jump to comment: Most recent
I got this error when I try to export the submissions to cvs
Notice: Undefined index: exporter in webform_results_download() (line 1129 of C:\wamp\www\aaap\sites\all\modules\webform\includes\webform.report.inc).
it was happening because this function webform_results_export its not returning a correct array , is missing 1 index: $export_info['exporter']
this index contain a object that is going to be used in the function webform_results_download() in line 1129 ;
my solution was add this code in the line 832 of webform.report.inc file
$export_info['exporter'] = $exporter;
that works for me.
I appreciate any comment, and sorry for my English.
Comments
Comment #1
meickolComment #2
meickolComment #3
danchadwick commentedPlease read the issue queue guidebook for issue priority, tags, and issue status.
I just tried this in version 7.x-4.4 and it worked fine for me.
webform_results_export() is no longer called from within webform. It does not need to set 'exporter' because is has already done the export. webform_results_download is called via browser ajax to download the file which was created by the batch export.
Perhaps I have misunderstood you, but I don't think that you are reporting a bug in the current version. If this isn't the case, please retest with at least 7.x-4.4 and provide detailed instructions to reproduce the issue. Thanks.
Comment #4
meickolI create my own code to made a custom export for my submissions,
how you see I am using the variable $export_info returned by webform_results_export to use like param of the function webform_results_download, I am doing that because if you look in the documentation of webform_results_download it said:
I dont know if is a error of the documentation or I am dont understand whats that mean.
Comment #5
meickolComment #6
danchadwick commentedThanks.
Committed to 7.x-4.x and 8.x.
Not yet pushed because I'm waiting for feedback on unrelated issue #1815996: Multiple target components for each conditional which is queued up before this patch. This will be in 7.x-4.7.
Comment #9
danchadwick commentedPushed to 7.x-4.x.