After installing the module I receive notice errors for trying to access a property from a non-object. Some additional logic should be added to ensure $form['#node'] exists.
Thanks,
Chris
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | content_moderation-975184-1.patch | 853 bytes | cpliakas |
Comments
Comment #1
cpliakas commentedThe attaches patch adds the additional logic.
Comment #2
eugenmayer commentedA bug is something else, not a notice.
I will solve the issue by checking the form_id to be a node form, as #node is always set there a cm only works with nodes anyway.
Thanks for the contribution anyway, good catch!
Comment #3
eugenmayer commented