Hi,
I have updated the core to 8.4.4. whenever I submit any entity which does not have a collection. I am getting the following error. I found it is throwing from the event subsriber. So, I have created a patch for this please review. Added !empty() condition before adding the token_devel route in collection.
Drupal\Core\Entity\EntityStorageException: Some mandatory parameters are missing ("workflow_transition") to generate a URL for route "entity.workflow_scheduled_transition.token_devel". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 805 of C:\xampp\htdocs\site\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).
Comment | File | Size | Author |
---|---|---|---|
#2 | collection_exists-2939458-2.patch | 552 bytes | saranya ashokkumar |
|
Comments
Comment #2
saranya ashokkumar CreditAttribution: saranya ashokkumar at UniMity Solutions Pvt Limited commentedComment #3
vani.S CreditAttribution: vani.S commentedThis patch worked for me. I also faced this problem.
Comment #4
MRPRAVIN CreditAttribution: MRPRAVIN at Valuebound commentedI tested this patch working fine. Thanks for the patch.
Comment #5
BerdirThe patch has coding style issues (for example missing space after if).
I don't think that's the right fix, might work for that example because it happens to not have a collection route but that's pretty arbitrary. Will need a better check, for example having more than one argument in the path.
Comment #6
Prashant.c@saranya purushothaman
Can you please write down the steps to regenerate this issue ?