Better error displaying

This commit is contained in:
Karel Pičman 2019-09-24 08:39:36 +02:00
parent 580dc88c84
commit 6e5207c8e4

View File

@ -171,7 +171,7 @@ class DmsfWorkflowsController < ApplicationController
end
flash[:notice] = l(:notice_successful_update)
elsif action.action != DmsfWorkflowStepAction::ACTION_APPROVE && action.note.blank?
flash[:errors] = l(:error_empty_note)
flash[:error] = l(:error_empty_note)
end
end
end