Edit Workflow Transitions will not save

wickwood - May 3, 2008 - 20:28
Project:Workflow Owner
Version:5.x-1.2
Component:User interface
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

Hello,

I'm very new to workflow, so chances are good I'm just doing something wrong, but I cannot for the life of me figure out how to get the transitions I check off to save.

Everytime I go through and check of everuthing and hit the save button, I have to wait a little bit, and then I'm served the orginal page with everything cleared and reset back to the defaults.

I'm running Drupal 5.7 on Linux machine with PHP 5.2.5 and MySQL 4.1.22-standard.

Thanks in advance for your help,
Steve

#1

jvandyk - May 6, 2008 - 17:00
Status:active» postponed (maintainer needs more info)

The changes you make in that UI are saved in the workflow_transitions table. Is that table present? Did anything weird happen during install? Anyone else seeing this problem?

#2

tecto - May 22, 2008 - 12:14

i just upgraded to the latest release for 5 (5.x-2.2) and the corresponding actions module and have encountered the same issue. i have also encountered a blank screen when i try to delete a workflow state or an entire workflow. the deletion confirmation screen loads, but when i confirm, all i get is a blank screen. uninstalling workflow and trying again.

#3

chlobe - May 26, 2008 - 01:33

Same as above.

Had initial problems in tables not loading upon install.

Transitions table is present but is not being changed after transitions are edited/saved.

#4

Bryan Martin - May 28, 2008 - 22:58

I am also having the same issue.

#5

Bryan Martin - May 28, 2008 - 23:15

This issue occurs only when the "Workflow owner" module is active. Turn it off, and you can change and save the work flow again.

#6

anarchman - October 3, 2008 - 00:40
Status:postponed (maintainer needs more info)» active

I encountered the same issue. Try to save after checking roles for each transition and not able to save. I installed Workflow Owner module at the same time as Workflow. That module produced an SQL error, which I noted over at its support request. I uninstalled Workflow Owner, but was still unable to save workflow transitions. The workflow transitions table was present, but didn't have any data. The workflow table did have the names of the workflows I created.

I uninstalled Workflow Owner and Workflow-ng and still had this problem. I ran update and cron. Finally, I uninstalled all workflow modules, deleted all the folders for each, and then re-installed only the Workflow module. This allowed for successful saving of transitions. Let me know if this should be x-posted over at the Workflow Owner module. There should be some kind of warning to users that it doesn't function properly with this one.

#7

indianroo - December 14, 2008 - 19:48

This bug was also biting me so traced through it and think the problem is here:

workflow_owner.module: in function workflow_owner_form_alter, line 206:

if ($form_id == 'workflow_edit_form') {
$form['#submit'] = array('workflow_owner_clear_autocomplete_cache' => '');
}

It overrides the submit handler for the workflow edit form, rather than chaining to it. I changed to this
and seems to work:

if ($form_id == 'workflow_edit_form') {
/*$form['#submit'] = array('workflow_owner_clear_autocomplete_cache' => '');*/
$form['#submit'] = array_merge(array('workflow_owner_clear_autocomplete_cache' => ''), $form['#submit']);
}

This is my first shot at debugging Drupal stuff, so apologies if it is not in the right format. Would appreciate
someone more knowledgeable verifying this.

(P.S. I tried emailing the original author today - Jacob Singh - but no response as yet.)

#8

jvandyk - December 29, 2008 - 20:15
Project:Workflow» Workflow Owner
Version:5.x-2.2» 5.x-1.2
 
 

Drupal is a registered trademark of Dries Buytaert.