I tried using this module with Mode: Filter by an entity reference view because I needed some filters for the entity reference instead of the Simple.

There's always a notice and warning error coming entity reference rendered widget module.

Notice: Undefined index: target_bundles in entityreference_rendered_widget_field_widget_form() (line 86 of /var/www/manila_secrets/sites/all/modules/entityreference_rendered_widget/entityreference_rendered_widget.module).

Warning: implode(): Invalid arguments passed in entityreference_rendered_widget_field_widget_form() (line 109 of /var/www/manila_secrets/sites/all/modules/entityreference_rendered_widget/entityreference_rendered_widget.module).

Is there any additional codes needed?

Thank you very much!

Comments

lucyp’s picture

I can confirm that I also received the notice about "Undefined index: target_bundles...." when I set the Mode to "Views: Filter by an entity reference view".

I did not receive the warning.

anybody’s picture

I can also confirm #1.

The first question is, if the target_bundle information is required. Otherwise a simple !empty / isset - check should fix this.

guilopes’s picture

Assigned: Unassigned » guilopes

  • guilopes committed a1cccb8 on 7.x-1.x
    #2422527 Solved error when use mode: filter by an entity reference view
    
guilopes’s picture

Status: Active » Closed (fixed)

I solved this in dev version, thanks =)

anybody’s picture

Thanks a lot for your quick and good solution. I'll test the .dev branch. Seems truely fixed :)