Closed (won't fix)
Project:
Workflow
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2010 at 10:43 UTC
Updated:
14 Nov 2011 at 19:57 UTC
Based on certain events in the system, when i change the workflow state of a node using rules, i get this warning. The transition of the state happens properly but it keeps displaying this warning.
# warning: in_array(): Wrong datatype for second argument in /sites/all/modules/workflow/workflow.rules.inc on line 62.
# warning: in_array(): Wrong datatype for second argument in /sites/all/modules/workflow/workflow.rules.inc on line 68.
# warning: in_array(): Wrong datatype for second argument in /sites/all/modules/workflow/workflow.rules.inc on line 71.
My Environment : Drupal 6.16
Workflow Version : 6.x-1.4
Rules Version : 6.x-1.2
PHP Version : 5.2.12
Comments
Comment #1
simon georges commentedHi,
Looking at the code, I think it's expecting
old_stateornew_stateinstead offrom_stateandto_state.Please find attached a patch providing this modification. I haven't tested it, so feel free to come back with your feedback.
Regards,
Comment #2
simon georges commented[Edit] Dummy comment due to timeout on submission...
Comment #3
simon georges commentedOups... I forgot to attach the patch.
Comment #4
simon georges commented[Edit] Dummy comment due to timeout on submission...
Comment #5
Bastlynn commentedSince this request is over a year old, I'm going to assume a solution was found or you've moved on. If not, please get updated to the latest versions of all modules and make a patch for it against Drupal 7 and I'll be glad to take a look at it.