I'm getting a notice on user profile forms: Notice: Undefined index: enable_select2 in select2boxes_field_widget_form_alter() (line 175 of modules/contrib/select2boxes/select2boxes.module).

Comments

ordermind created an issue. See original summary.

valentine94’s picture

Status: Active » Needs review
StatusFileSize
new708 bytes

Thanks for report!

Here is a patch that fixes this problem

valentine94’s picture

Title: Undefined index: enable_select2 in select2boxes_field_widget_form_alter » Fix notices/warnings in a module
Assigned: Unassigned » valentine94
Status: Needs review » Needs work

Will try to find any other notices/warnings to deploy a fix within this issue. Please let me know if you have one

valentine94’s picture

Status: Needs work » Needs review
StatusFileSize
new1.96 KB

OK, found one more notice and fixed it

valentine94’s picture

Assigned: valentine94 » Unassigned

Status: Needs review » Needs work

The last submitted patch, 4: undefined_index_enable_select2-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

valentine94’s picture

Status: Needs work » Needs review
StatusFileSize
new3.45 KB

Updated patch

  • matsbla committed b78902a on 8.x-1.x authored by Valentine94
    Issue #2968490 by Valentine94: Fix notices/warnings in a module
    
matsbla’s picture

Status: Needs review » Fixed
ordermind’s picture

Thanks for the fast fix :)

Status: Fixed » Closed (fixed)

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