Remember "Only display used statuses" checkbox value after update.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9997 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
071cf55fc8
commit
072475b8a5
|
@ -38,7 +38,7 @@ class WorkflowsController < ApplicationController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if @role.save
|
if @role.save
|
||||||
redirect_to :action => 'edit', :role_id => @role, :tracker_id => @tracker
|
redirect_to :action => 'edit', :role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only]
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -64,7 +64,7 @@ class WorkflowsController < ApplicationController
|
||||||
|
|
||||||
if request.post? && @role && @tracker
|
if request.post? && @role && @tracker
|
||||||
WorkflowPermission.replace_permissions(@tracker, @role, params[:permissions] || {})
|
WorkflowPermission.replace_permissions(@tracker, @role, params[:permissions] || {})
|
||||||
redirect_to :action => 'permissions', :role_id => @role, :tracker_id => @tracker
|
redirect_to :action => 'permissions', :role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only]
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
<%= form_tag({}, :id => 'workflow_form' ) do %>
|
<%= form_tag({}, :id => 'workflow_form' ) do %>
|
||||||
<%= hidden_field_tag 'tracker_id', @tracker.id %>
|
<%= hidden_field_tag 'tracker_id', @tracker.id %>
|
||||||
<%= hidden_field_tag 'role_id', @role.id %>
|
<%= hidden_field_tag 'role_id', @role.id %>
|
||||||
|
<%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %>
|
||||||
<div class="autoscroll">
|
<div class="autoscroll">
|
||||||
<%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %>
|
<%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %>
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<%= form_tag({}, :id => 'workflow_form' ) do %>
|
<%= form_tag({}, :id => 'workflow_form' ) do %>
|
||||||
<%= hidden_field_tag 'tracker_id', @tracker.id %>
|
<%= hidden_field_tag 'tracker_id', @tracker.id %>
|
||||||
<%= hidden_field_tag 'role_id', @role.id %>
|
<%= hidden_field_tag 'role_id', @role.id %>
|
||||||
|
<%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %>
|
||||||
<div class="autoscroll">
|
<div class="autoscroll">
|
||||||
<table class="list fields_permissions">
|
<table class="list fields_permissions">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
Loading…
Reference in New Issue