Needs review
Project:
Workbench Moderation
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2015 at 00:56 UTC
Updated:
25 Nov 2016 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jorgegc commentedSubmitting a patch for review.
Comment #4
jorgegc commentedComment #5
jorgegc commentedTriggering tests again.
Comment #7
jorgegc commentedComment #8
joelpittetShould that maybe be called inside the function to ensure it's used anywhere that is called?
Comment #9
jorgegc commentedHey @joelpittet, did you mean inside workbench_moderation_state_none()?
Comment #10
joelpittetYes, sorry for being vague
Comment #11
jorgegc commentedNo worries! Although possible, I don't think the function was created for that particular purpose. Also, we would have to change the API and introduce $content_type as a dependency. I am just trying to fix the issue the simplest way possible at this stage, sorry @joelpittet!
Comment #12
joelpittetI was thinking that if someone was to call
workbench_moderation_state_none()it should probably return the default state in all cases, but maybe I'm wrong. That way we won't run into this issue again with a different call to the same function.