APW unit tests
This commit is contained in:
parent
530e32f47c
commit
b51b6fdebd
@ -413,12 +413,14 @@ class DmsfWorkflowsController < ApplicationController
|
||||
end
|
||||
end
|
||||
# Operators
|
||||
params[:operator_step].each do |id, operator|
|
||||
step = DmsfWorkflowStep.find_by_id id
|
||||
if step
|
||||
step.operator = operator.to_i
|
||||
unless step.save
|
||||
flash[:error] = step.errors.full_messages.to_sentence
|
||||
if params[:operator_step].present?
|
||||
params[:operator_step].each do |id, operator|
|
||||
step = DmsfWorkflowStep.find_by_id id
|
||||
if step
|
||||
step.operator = operator.to_i
|
||||
unless step.save
|
||||
flash[:error] = step.errors.full_messages.to_sentence
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user