Closed (fixed)
Project:
Workflow
Version:
8.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2017 at 22:02 UTC
Updated:
28 Apr 2018 at 20:44 UTC
Jump to comment: Most recent
The function workflow_state_allowed_values() and its D7 predecessor workflow_options_list() was once a central function. It is not used anymore and it is succeeded by the 2 functions getPossibleOptions() and getPossibleOptions() from the OptionsProviderInterface.
Comments
Comment #3
johnvComment #6
yjajkiew commentedI am using Workflow 8.x-1.0 and I'm having this error with devel_generate :
Error: Call to undefined function workflow_state_allowed_values() in options_allowed_values() (line 88 of core/modules/options/options.module).But searching inside the workflow module there is still a reference to the function "workflow_state_allowed_values" at line 159, inside the function defaultStorageSettings, of the file WorkflowItem.php
Could it be an oversight ?
Comment #7
johnvI need to check that.
the 'Version' of this issue states that is detected in 1.0-rc1, so should be solved in 1.0.
However, the dev-version is the most recent and has numerous improvements.
Comment #8
yjajkiew commentedI'm using the 1.0 version so there's still an issue with this function being called but not existing (because of the commits related to this particular issue).
The code I mentionned, that makes a reference to the deleted function, exists in 1.0 and 1.0-dev apparently.
Hope this helps :-)
Comment #9
johnvI see the wrong line. Can you provide me with a testscript to reproduce the error?
Comment #10
yjajkiew commentedThe steps to reproduce this error is pretty simple by using "devel_generate" (I don't know this module well enough to generate a testscript) but it goes as follow :
Comment #12
johnvThanks for the catch. I could not get rid of the problem entirely, so I have a stub function for older installations.