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

CommentFileSizeAuthor
#1 content_moderation-975184-1.patch853 bytescpliakas

Comments

cpliakas’s picture

Status: Active » Needs review
StatusFileSize
new853 bytes

The attaches patch adds the additional logic.

eugenmayer’s picture

Category: bug » support

A 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!

eugenmayer’s picture

Status: Needs review » Patch (to be ported)