Closed (fixed)
Project:
Paragraph blocks
Version:
3.0.0
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2020 at 15:14 UTC
Updated:
19 Jun 2022 at 02:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
akoe commentedA suggestion of a rewrite and fundamental refactoring would be still a open todo.
Comment #3
ansergeyg commentedI can confirm the issue.
Actually, this comment says it all:
https://git.drupalcode.org/project/paragraph_blocks/-/blob/8.x-2.x/src/ParagraphBlocksEntityManager.php#L96
The assumption is wrong because with multilingualism enabled,
the path starts with, say, en/node/id but not with /node/id
So this code:
list($entity_type_id, $entity_id) = $parts;has $ntity_type_id equals to en, thus failing to retrieve the entity.
The patch seems to work.
Regards, Sergey
Comment #4
loziju commentedPatch tested working for me too!
Comment #5
vaibhavjainThanks for the work. Patch merged