Approval workflow edit action replaced with show
This commit is contained in:
parent
65c7227bd1
commit
6058a737e4
@ -213,9 +213,6 @@ class DmsfWorkflowsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
if request.put? && @dmsf_workflow.update_attributes({:name => params[:name]})
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<tbody>
|
||||
<% for workflow in @workflows %>
|
||||
<tr id="workflow-<%= workflow.id %>" class="<%= cycle('odd', 'even') %>">
|
||||
<td class="name"><%= link_to(h(workflow.name), edit_dmsf_workflow_path(workflow)) %></td>
|
||||
<td class="name"><%= link_to(h(workflow.name), dmsf_workflow_path(workflow)) %></td>
|
||||
<td class="buttons">
|
||||
<%= delete_link dmsf_workflow_path(workflow) %>
|
||||
</td>
|
||||
|
||||
2
init.rb
2
init.rb
@ -72,7 +72,7 @@ Redmine::Plugin.register :redmine_dmsf do
|
||||
:dmsf_links => [:new, :create, :destroy]
|
||||
}
|
||||
permission :manage_workflows,
|
||||
{:dmsf_workflows => [:index, :new, :create, :destroy, :edit, :add_step, :remove_step, :reorder_steps, :update]}
|
||||
{:dmsf_workflows => [:index, :new, :create, :destroy, :show, :add_step, :remove_step, :reorder_steps, :update]}
|
||||
permission :force_file_unlock, {}
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user