Reviewed & tested by the community
Project:
Workbench Moderation Notes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2012 at 19:39 UTC
Updated:
16 Jun 2016 at 16:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
barrapontoI guess this is a workbench moderation issue.
Comment #2
spouilly commentedThe error appears because the function expects a node object in $node, but $node contains a content type instead (so the function is being called with the wrong arguments).
A little bit of troubleshooting seems to indicate that it is related to the 'workbench moderation notes' module (if you remove the module, the warning will go away).
S.
Comment #3
barrapontoLet's keep the report moving.
Comment #4
pkil commentedI'm not sure how to create patches. If you change line 93 in workbench_moderation_notes.pages.inc to the following, it fixes this issue.
$next_states = workbench_moderation_states_next(workbench_moderation_state_published(), $user, $node);
Obviously just changing $node->type to reference the actual object and not the 'type' property.
Comment #5
barrapontoOk, let's give it a try.
Comment #6
pkil commentedPerfect, confirming #5 works.
Comment #7
betoscopioApplied patch #5, it works.
Comment #8
betoscopioChanging status, the patch seems to fix the problem.
Comment #9
bceyssensPatch #5 works just fine, why hasn't this been committed yet?
Comment #10
cmanalansan commentedRTBC +1
Comment #11
chrisdarke commentedRTBC +2