Project

General

Profile

Problems with workflows

Added by Lars Neideck over 9 years ago

Months ago I migrated from 1.x version to 2.2 and now I am on version 2.6.
With this migration I also migrated from mysql to sql server database.
Since migration I have problems with the workflow.
As you see in the picture, I never get anything showed in the basic workflow status table, regardless of my role or tracker filter.
Every workflow right I set in this table will after save be shown in the underneath tables for author and assignee rights.

I have tried to solve the problem by deleting all workflows and building them up again from scratch, but this did not help.

Thanks in advance for any ideas.

Lars


Replies (1)

RE: Problems with workflows - Added by Lars Neideck over 9 years ago

Played around a bit:
If I change the following lines (46-48) in class WorkflowsController:
@workflows['always'] = workflows.select {|w| !w.author && !w.assignee}
@workflows['author'] = workflows.select {|w| w.author}
@workflows['assignee'] = workflows.select {|w| w.assignee}

to
@workflows['always'] = workflows.select {|w| w.author==0 && w.assignee==0}
@workflows['author'] = workflows.select {|w| w.author==1}
@workflows['assignee'] = workflows.select {|w| w.assignee==1}

and make the same changes in class WorkflowTransitions (58-62)
if rule 'always'
w = w.select {|r| r.author0 && r.assignee==0}
else
w = w.select {|r| r.author==1 || r.assignee==1}
end

I afterwards can edit workflows correctly.

So this seems to be a bug with SQL Server??

Bye
Lars

    (1-1/1)