Exposed filters in a block on a view which has nothing to do with webform at all getting error

Notice: Undefined index: expose in webform_handler_area_result_pager->render_items_per_page() (line 60 of E:\example.com\sites\all\modules\webform\views\webform_handler_area_result_pager.inc).

which seems to be coming from the patch in https://www.drupal.org/node/2330557#comment-9328853

  function render_items_per_page($pager) {
    $options = explode(',', $pager->options['expose']['items_per_page_options']);
    $sanitized_options = array();
    if (is_array($options)) {

Comments

  • DanChadwick committed 3004c70 on 7.x-4.x
    Issue #2444339 by DanChadwick: Undefined index in...
  • DanChadwick committed 6e8bc61 on 8.x-4.x
    Issue #2444339 by DanChadwick: Undefined index in...
danchadwick’s picture

Status: Active » Fixed

Thanks for the report. Your workaround is simply to not use this area handler -- use the regular one provided by views. It's only purpose is to expose the @items_per_page_links token to allow the user to change the items/page with links.

This patch fixes a number of issues with this area handler:

  1. The name was misleading (hence this issue).
  2. The default text did not include the @items_per_page_links, when this is the only use case for this area handler.
  3. The handler did not work properly when there was a pager, but the pager did not use items/page (the main issue).
  4. The links created included the 'q' URL query, which should be stripped since that is used for menu routing.

Committed to 7.x-4.x and 8.x.

Status: Fixed » Closed (fixed)

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