Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
custom_block.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Aug 2013 at 21:06 UTC
Updated:
29 Jul 2014 at 22:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
larowlancause I can't face comment field
Comment #2
larowlanhoping for red/green
Comment #3
tim.plunkettI'm surprised we have to check this! Hm.
Partially out of scope, but this would look way better as a render array with '#type' => 'link'.
Can we change this to
// Creates two block types programmatically.? There is a typo, and the important part here is that there are two.Might as well put this in a local variable
Can't these be $this->assertUrl()?
Missing blank line
Comment #4
larowlanCommented on #2025669: Introduce #type 'custom_block_add_list', agree out of scope.
3-6 yep will fix
Comment #5
larowlan1. we can try without it
Comment #6
larowlanfixing
Comment #7
larowlanFixes issues at #3 except 1.
We don't want the destination to be set as /block/add because the form redirects back there instead. I.e. we only want drupal_get_destination() to give us the ?destination= bit, the fallback is to use the current page and this sends us back to /block/add.
Have updated the comment so its clear.
Comment #8
tim.plunkettFair point! Thanks so much.
Comment #9
catchComment #10
catchCommitted/pushed to 8.x, thanks!
Comment #11
xjmSee #2068053: Custom block creation form redirect is inconsistent. If this issue was intended to fix that bug, it is (a) mis-titled and (b) not successful. :)
Comment #12
xjmComment #13
xjmComment #14
tim.plunkettI'm reopening that one then. This did what it said.