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...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | enforce_revlog-7.x-1.0-beta3_undefined_property.patch | 655 bytes | mesr01 |
| #3 | enforce_revlog-7.x-1.0-beta3_undefined_property.patch | 179 bytes | mesr01 |
Comments
Comment #1
mdupontThanks for the report. I've updated the code to remove these notices. A new version will be released seoon.
Comment #3
mesr01 commentedHi. I kept getting the above message for line 127. I found the problem and here's the patch.
Comment #4
mesr01 commentedHere's an improved version.
Comment #5
mdupontThanks 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.
Comment #6
mdupontOops
Comment #7
mdupont