- Issue created by @robertmartin1961
- π¨π¦Canada spotzero
@dhruv.mittal happy to see you're looking into this. I've reviewed the affected code and wanted to offer some guidance.
According to the commit log, the purpose of the form alter is to hide the WSData fields from the node edit form. Which is correct, we don't want them there. However, there's another bug here: we don't want wsdata fields to be on any entity's edit form.
I think the condition could be changed so that instead of checking the route, just check if the form was an instance of EntityForm (https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...) and checking that entity is implemented ContentEntityInterface (https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...).
That should fix this issue and make sure people aren't offered form elements for wsdata fields on any form.
I have raised MR that is solving the error that is occurring while opening the preview page in edit mode kindly review it.
Let me know if further assistance required.
Thanks- First commit to issue fork.
-
dhruv.mittal β
committed ca648118 on 3.0.x
Issue #3510517: Call to Undefined Method.
-
dhruv.mittal β
committed ca648118 on 3.0.x
Automatically closed - issue fixed for 2 weeks with no activity.