Fixed two bugs caused by the core changes to project/subprojects. Might break compatibility with the 0.8.x branch of Redmine.
#2089
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<%= # TODO: move to controller once a hook is in place for the Admin panel
|
||||
projects = Project.find(:all, :conditions => { :status => Project::STATUS_ACTIVE}, :include => :parent)
|
||||
projects = Project.find(:all, :conditions => { :status => Project::STATUS_ACTIVE})
|
||||
|
||||
select_tag("rate[project_id]", project_options_for_select_with_selected(projects, @rate.project))
|
||||
%>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<p>
|
||||
<label><%=l(:label_project_new)%></label><br/>
|
||||
<% form_tag({ :action => 'edit_membership', :id => @user }) do %>
|
||||
<%= select_tag 'membership[project_id]', projects_options_for_select(@projects) %>
|
||||
<%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, @projects) %>
|
||||
<%= l(:label_role) %>:
|
||||
<%= select_tag 'membership[role_id]', options_from_collection_for_select(@roles, "id", "name") %>
|
||||
<%= submit_tag l(:button_add) %>
|
||||
|
||||
Reference in New Issue
Block a user