Closed (fixed)
Project:
Workflow
Version:
7.x-1.2
Component:
Features
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2012 at 01:52 UTC
Updated:
16 Dec 2013 at 20:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hefox commentedPlease provide as much information as possible, including the feature at issue if possible, etc.
Comment #2
Vidus commentedAlright, let me know what else you need to see. Here is the text of the features.inc file:
Comment #3
kenorb commentedI've similar problem.
File: aat_wex_feature.features.inc
Code:
The function is executed properly.
In feature status it says: 'Default'.
Module workflow_views is enabled properly.
But in the configuration I've got: "No workflows have been added.".
I've version = "7.x-1.0" of Workflow module.
I'm not sure, but probably forced feature revert helps (drush -yv --force fr my_feature).
Comment #4
kenorb commentedI think it's not creating the Workflows when module feature is being enabled, but it's recreating workflow states when the feature is reverted.
Comment #5
cloudbull commentedsame issue here ~
Comment #6
jpoesen commentedConfirming the problem and the workaround.
After enabling a Feature with a workflow component, its state is overridden.
Doing a
drush fr <featurename>brings its state to default and properly creates the workflow states.Any subsequent workflow changes are properly added to the feature using
drush fu <featurename>and they are properly propagated withdrush fr <featurename>- the standard way to deploy Feature changes.So the problem is really only an issue on the initial enabling of the module. Once a feature-revert has been performed, the feature/workflow behaves normally.
EDIT: more info this duplicate issue: #1589254: Workflows not imported with Features
Comment #7
kenorb commentedWhich duplicate issue? It's pointing to the current issue.
Comment #8
adamtong commentedI have same problem. how to fix it? any patch?
Comment #9
adamtong commentedi found the lastest dev version still cannot import the workflow properly by Features.
will it be implemented as a new features?
Comment #10
duaelfrHere is a fix for the features integration of workflow.
This patch is part of the #1day1patch initiative.
Comment #11
nancydruCommitted with attribution. Thanks for the patch.
Comment #13
fedia.io1 commentedI got the same problem (workflows aren't created) during installation of a custom drupal-distribution (custom install-profile) or setting up custom drupal web test case.
I am using 'Workflow' module (7.x-1.2) and 'Features' (7.x-2.0).
Cause of this problem is that during installation (or test-run) features aren't reverting but they are rebuilding.
Here is patch which is fixing this.
Comment #14
johnvComment #15
johnvComment #16
colanClosing again as #13 is the same patch as #10 which was already committed in 8f78eb017d.
Comment #17
johnv@colan, are you sure? #13 implements hook_features_rebuild(), which is not in #10.
Comment #18
colan@johnv: Wow, you're right. Looks like there's a problem with the Dreditor I have installed in Chrome. When I click on the "Review" button next to each patch, I get the same results, but when I click on the actual patch files, they're different.
Sorry about that!
Edit: The Dreditor issue is REVIEW button does not open linked patch but previously hidden patch in case anyone else runs into this.
Comment #19
johnvSeems like DrEditor needs a D7 upgrade, too :-)
Comment #20
johnv@fedia.io1, please open a new issue the next time. I've committed your patch - it was proposed in other issues, too. It seems the hook is renamed in D6->D7. See this commit.