Notice: Undefined index: mandatory in webform_import_form() (line 157 of webform_import/webform_import.module)

Comments

selfsimilar’s picture

Issue summary: View changes
StatusFileSize
new433 bytes
gobinathm’s picture

Assigned: Unassigned » gobinathm
Status: Active » Closed (fixed)

selfsimilar, test & found this issue in 7.2 version. So i have committed this change in dev branch, it will be release in our next release.

carsal’s picture

Status: Closed (fixed) » Active

Hi I am sorry to reopen this issue but I have just downloaded this module today I am getting the same error. I tried ignoring it and importing a file, the records are imported but I get the following errors:
Notice: Undefined index: mandatory in webform_import_form() (line 157 of C:\Domains\2rsvp.co.za\wwwroot\dd\sites\all\modules\webform_import\webform_import.module).
•Notice: Undefined variable: submitted_key in _webform_import_import() (line 415 of C:\Domains\2rsvp.co.za\wwwroot\dd\sites\all\modules\webform_import\webform_import.module).

Is this something I should be concerned about?

PascalAnimateur’s picture

Status: Active » Needs review
StatusFileSize
new428 bytes

In webform 4.x, I think the 'mandatory' key was replaced by 'required'

Here's a patch that resolves the error with webform 4.12.

PascalAnimateur’s picture

StatusFileSize
new1.47 KB

Revised patch that catches more 'mandatory' keys..

The last submitted patch, 4: webform_import-fix_undefined_mandatory-2151745-4.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 5: webform_import-fix_undefined_mandatory-2151745-5.patch, failed testing.

PascalAnimateur’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs work » Needs review
mattia.cristallo’s picture

same problem!!!

gobinathm’s picture

Status: Needs review » Needs work

Patch is failing.. can you check it

gobinathm’s picture

Issue summary: View changes

Tested the issue manually and works as expected hence committing to dev branch.

gobinathm’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

schellenbergk’s picture

I'm running version 7.x-1.3 of webform_import and am seeing this error for as many columns are on the webform. I see this each time I go to the webform import page.

Any clues why we're getting this?

pnmgman’s picture

I am having the same issue with 7.x-1.3. I don't think this module is well-maintained as this problem has been going on for 4 years now and has supposedly been fixed, patched and rolled before. I think we're on our own.

Avinash_Barbate’s picture

Issue summary: View changes

hello all, I am trying to upload web form submission data using webform import module, but i am facing this issue Notice: Undefined index: mandatory in webform_import_form(), please suggest any solution