Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
help.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2016 at 16:34 UTC
Updated:
12 May 2016 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottPatch attached is a failing test built on top of #2707109: Help block should not be displayed when hook_help() implementations return an empty string as that adds simple help block test coverage. The do-not-test.patch shows the relevant additions.
Comment #3
alexpottOops forget to enable the module - the test still fails as expected though...
Comment #4
alexpottHere's a patch with a fix.
Comment #7
jhodgdonThis looks great! Good catch also. I am ready to RTBC it, but it looks like we should wait for #2707109: Help block should not be displayed when hook_help() implementations return an empty string to be finished, at which point it will need a reroll because this patch includes the patch from that other issue.
Comment #8
alexpottI think this fix is patch eligible. Rerolled now that #2707109: Help block should not be displayed when hook_help() implementations return an empty string has landed.
Comment #10
jhodgdonWhat's not to like? :) Good, clean code. With test. Fixes bug. Let's do it.
Comment #11
catchI think this should use https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ModuleH...
Also see #2616814: Delegate all hook invocations to ModuleHandler.
Comment #12
alexpott@catch - good catch.
Comment #13
jhodgdonThanks!
Comment #15
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!