I am using workflow tab for submiting workflow changes. The following fields are constantly emptied when changing the workflow:
content taxonomy fields - all of them
node_style - another drupal modul.
Other fields are working so far. Must be something with node_save (Line 198 Workflow-Module) not loading everything in this context - i have no idea - only guessing.
I also told the system always to produce a new revision - but workflow-tab DOES resave the node without producing a new revision.
I did not expect the workflow-tab-Function to resave the whole node - as only the workflow must be updated - but if doing so - i expect it to add a new revision if the content-type is set to always add new revisions - and it also should save reliably.
you should be able to reproduce the situation using content taxonomy and node_Style (latest versions) together with workflow
i am still looking for something, what i could have done wrong - but i am not succeeding. I have some custom form templates - which are called with certain URLs (like node/add or node/*/edit). I was looking for mistakes there - but (1) i am not expecting workflow to load those templates instead of the full edit form (as it is only put be URL-arg()) - and second i could not find any mistake. I have all the fields included with every template. I am still looking - but for the moment i guess it is the workflow-tab. I found a different issue on workflow tagb deletes node teaser - so i guess there is probably some systematic mistake.
Otherwise all my forms are saving fine.
regards
Christian
Comments
Comment #1
Josh Benner commentedI am experiencing the same issue. For now I am instructing users to not use the workflow tab, and I fix broken nodes by going into edit and submitting. This is pretty serious.
Comment #2
bwo commentedI confirm this bug. I experience it with the content taxonomy fields, but only when I set their "save options" to "save in cck table" or "both". When a field is set to "save as tag", it is preserved.
Second thing - the fields are deleted even if you actually do not change workflow state and even if you do not enter any comment. It is enough that you hit "submit" button on the workflow tab.
Any chances to fix this soon? I agree it is critical.
Comment #3
bwo commentedOK, I don't know if it's a good way to do this, but I managed to fix my problem by replacing:
node_save($node);with:
workflow_transition($node, $node->workflow);in the workflow_tab_form_submit() function.
Comment #4
Bastlynn commentedHi,
With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.
- Bastlynn