Hello, I happened to delete the error message I got on the install of the module, but as I'm using it, I get the following notice message when creating new content:

Notice: Undefined property: stdClass::$nid in enforce_revlog_node_prepare() (line 81 of /usr/local/share/drupal/all/modules/enforce_revlog/enforce_revlog.module).

Notice: Undefined property: stdClass::$enforce_revlog in enforce_revlog_form_alter() (line 127 of /usr/local/share/drupal/all/modules/enforce_revlog/enforce_revlog.module).

And this notice when editing content:

Notice: Undefined property: stdClass::$enforce_revlog in enforce_revlog_form_alter() (line 127 of /usr/local/share/drupal/all/modules/enforce_revlog/enforce_revlog.module).

I have done the following:

Installed the module (7.x-1.0-beta2 version),

Ticked off two content-types that I want to force revision log messages on,

Checked if permissions were necessary and found that they weren't (as I'd like everyone to have to enter a revision log message on revisions...),

Tried to revise one of the nodes with that content type.

I do not know if this is in fact an error, but it doesn't look nice with a notice every time one creates or revises content...

Comments

mdupont’s picture

Assigned: Unassigned » mdupont
Status: Active » Fixed

Thanks for the report. I've updated the code to remove these notices. A new version will be released seoon.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mesr01’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new179 bytes

Hi. I kept getting the above message for line 127. I found the problem and here's the patch.

mesr01’s picture

Here's an improved version.

mdupont’s picture

Version: 7.x-1.0-beta2 » 6.x-1.x-dev

Thanks for the report, it should now be fixed in branch 7.x-1.x. Please use the git version or the latest dev version to have the fix. I'll make a new stable version soon after some more testing.

mdupont’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Oops

mdupont’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.