When I do in my form field type "text" with widget "selection" (dropdown selection list), almost always two messages appear:

warning: Invalid argument supplied for foreach() in S:\home\mindmanager\www\sites\all\modules\popup\popup_filter\popup_filter.module on line 391.

and

warning: Invalid argument supplied for foreach() in S:\home\mindmanager\www\sites\all\modules\popup\popup_filter\popup_filter.module on line 405.

In the code one can see that really it relates to "selection" (options):

function popup_filter_ajax_getdeltas($module){

  $options = '';
  $blocks = module_invoke($module, 'block', 'list');
  foreach($blocks as $delta=>$data){
    $options .= '<option value="' . $delta . '">' . $data['info'] . '</option>';
  }

  print $options;
  exit;
}

function popup_filter_ajax_getdisplays($view_name){

  $view = views_get_view($view_name);
  foreach($view->display as $id=>$display){
    $options .= '<option value="' . $id . '">' . $display->display_title . '</option>';
  }

These messages appear not only on the formp page, but also on many other pages - even those where there are no select fields. When I disable select fields from forms - these massages not appear...

How can I fix this issue?

CommentFileSizeAuthor
#1 popup-filter-852710.patch1.04 KBScheepers de Bruin

Comments

Scheepers de Bruin’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new1.04 KB

This patch should fix it.

Scheepers de Bruin’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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