Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When a custom block has been created, if the user then deletes the custom block using the “delete” contextual link, and then clicks place block again, the block still appears in the list. If the user then tries to add the block the action fails without error message.
Proposed resolution
Remove the block from cache
Remaining tasks
Remove block from cache
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#20 | 2786195-delete-block-8.2.20.patch | 4.33 KB | larowlan |
#20 | interdiff.txt | 825 bytes | larowlan |
#5 | 2786195-delete-block.pass_.patch | 4.21 KB | larowlan |
#5 | 2786195-delete-block.fail_.patch | 2.13 KB | larowlan |
Comments
Comment #2
tkoleary CreditAttribution: tkoleary at Acquia commentedComment #3
larowlanComment #4
larowlanBug fixes go into 8.1.x first - giddyup
Comment #5
larowlanSomething like so
Comment #7
andypostLooks great and have tests!
Comment #8
tim.plunkettWe should probably audit all of the entities that have just a postSave, I bet there are other entity classes with mismatches like this (SearchPage comes to mind).
+1 for RTBC
Comment #9
alexpottCommitted and pushed 6bdf44e to 8.3.x and 66fa7be to 8.2.x and 82bece9 to 8.1.x. Thanks!
Comment #13
andypostWhat did you mean? please elaborate
Comment #14
andypostAlso looks a loot patches has failured after this with similar error
For example https://www.drupal.org/pift-ci-job/436365
Comment #15
catchYes I'm seeing the same. Reverted from all three branches for now.
Comment #19
larowlanYeah, 8.2.x adds revision user to the entity.
Comment #20
larowlanAdded user support to test, should pass on all three branches now - will queue test runs for each.
Comment #25
catchThanks! Committed to all three branches.