Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
block_content.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Nov 2016 at 20:33 UTC
Updated:
25 Feb 2017 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
laxman.ghavte commentedComment #3
tkoleary commentedComment #4
tkoleary commentedComment #5
tkoleary commentedComment #6
tim.plunkettNeeds a patch.
Comment #7
dmezquiaComment #8
tim.plunkettIMO those were relevant
Comment #9
shubhang commentedAs this issue has a "Novice" tag, so can you be a little more descriptive of where this change needs to be made.
I am a begginer and really wants to contribute to Drupal.
Comment #10
tkoleary commentedThe file that needs to be changed is core/modules/block_content/block_content.links.contextual.yml
Comment #11
ada hernandez commentedComment #12
ada hernandez commentedComment #13
tkoleary commentedLooks good.
Note: the image above shows two "quick edit" links, that's being addressed in another issue.
Comment #15
Thew commentedPatch passed.
Comment #17
lomasr commentedApplied the patch in #11 . Worked cleanly for me. Please see the screens.
Comment #18
boosmith commentedI'm looking to test this but I am not sure exactly which URL this is in Drupal as I can't reproduce the screenshots attached. Thanks
Comment #19
tkoleary commented@boosmith
Best way to test it is to:
The reason for steps 7-13 is that system created blocks that are on the page by default do not have 'remove' (or delete) links.
Comment #20
boosmith commentedThanks tkleary. I followed the steps in #19 and it passed testing.
Screen Shot 2017-01-10 at 20.43.12.png
Comment #21
utkarsh_malviya commentedAfter we click on the remove link the next page still shows delete.
Comment #22
tim.clifford commentedCan confirm patch #11 works against core 8.3.x but the next page does still say delete (#21)
Comment #23
utkarsh_malviya commented@tkoleary can you help me solve this? I am new here.
Comment #24
tim.clifford commentedChanged contextual link and button on following page.
Comment #25
utkarsh_malviya commented@tim.clifford the button on the next page also says delete!
Comment #26
tim.clifford commentedAs utkarsh_malviya points out, the form submit button label needs to be updated as well. Patch #26 updates both the contextual filter and the delete button label. I have also added a space in between sentences for the message.
Comment #27
tim.clifford commentedTested on 8.3.x and seems to be working fine.
Comment #28
tim.clifford commentedComment #30
tim.plunkettExcept the big bold title says "delete" and the rest of the words say "remove"
Comment #31
tim.clifford commentedUpdating test and re-applying patch.
Comment #32
tim.clifford commentedComment #34
tim.plunkettWhy this change?
Also
PHP Parse error: syntax error, unexpected ')' in /var/www/html/core/modules/block_content/src/Tests/BlockContentListViewsTest.php on line 106Comment #35
tkoleary commented@tim.plunkett
looks like it adds a space after "instances. "
Comment #36
tim.plunkettYes I can see *what* it is doing, I asked *why* :)
Comment #37
tim.clifford commentedSpace was added as sentence that followed started immediately after the '.'
Comment #38
tim.clifford commentedSyntax error fix. Removed the space as mentioned above.
Comment #39
tim.clifford commentedComment #41
tim.clifford commentedComment #42
tim.clifford commentedComment #43
tim.plunkett@tim.clifford can you include interdiffs for your changes from now on? Thanks!
https://www.drupal.org/documentation/git/interdiff
Comment #44
tim.plunkettAfter trying to debug #2839558: Blocks do not have a "remove" contextual link, I realized that all of these changes are wrong.
None of these will just remove that placed block, they will delete the block content entity and ALL placements of the block. It is a destructive deletion of user-entered content, not a easily reversible configuration change.
Either this is won't fix, or the issue needs more clarification.
Not quite :)
Comment #45
tkoleary commentedComment #46
tim.plunkettComment #47
larowlan+1 to just remove
Comment #49
rosschive commentedTaking a look as part of Global Sprint Weekend (Boston)...
I created 8.4.x sandbox with patch 46 (via simplytest.me). Verifying that following the placement of a custom block, the contextual editor options do not contain either a 'Remove' or 'Delete' option (see screenshot).
Comment #53
webchickCommitted and pushed to 8.4.x and backported to 8.3.x. Thanks!
Comment #54
xjm