Open bseeger opened 4 years ago
I managed to fix it with this:
diff --git a/src/Plugin/ContextReaction/Blocks.php b/src/Plugin/ContextReaction/Blocks.php
index 1f72a02..905466b 100644
--- a/src/Plugin/ContextReaction/Blocks.php
+++ b/src/Plugin/ContextReaction/Blocks.php
@@ -219,7 +219,7 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
'route_parameters' => [
'context' => $configuration['context_id'],
'reaction_id' => 'blocks',
- 'block_id' => $block->getConfiguration()['uuid'],
+ 'block_id' => $block->getConfiguration()['uuid'] ?? $this->uuid->generate(),
],
];
Blocks generated by views don't get uuids, so that param was getting set wrong. By minting a new uuid, the rest of the downstream code is satisfied. Not sure how clean that is, but it was quick and easy enough. I'll be making an issue and patch to the context module with this.
Just confirming that this works nicely for me as well.
@bseeger do you know if context module fixed this?
When I view a collection page, I see an error in the Reports log:
Overall, it seems pretty innocuous, as it doesn't seem to affect anything.
Full messages:
@dannylamb Thinks this is related to Contexts.