In the tasks

  • comment_reply
  • node_view
  • user_edit
  • user_view

there isn't a strict check if ctools_context_handler_render returns FALSE so a empty string is not accepted as valid output and the fallback action is called.

Attached patch.

Comments

Status: Needs review » Needs work

The last submitted patch, strict_check_ctools_context_handler_render-1.patch, failed testing.

mrjmd’s picture

Here's a reroll.

mrjmd’s picture

Status: Needs work » Needs review
damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community

For confirmation, the return statement from ctools_context_handler_render() has the following note:

Either the output or NULL if there was output, FALSE if no handler accepted the task. If $page is FALSE then the $info block is returned instead.

This patch fixes the issue.

mrjmd’s picture

japerry’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +SprintWeekend2015

Looks good. Committed.

  • japerry committed 7f9e55d on 7.x-1.x authored by mrjmd
    Issue #1907242 by mrjmd, logaritmisk: Strict check if...

Status: Fixed » Closed (fixed)

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