Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/roles/_edit.html.erb | 2 +-
doc/ChangeLog | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/views/roles/_edit.html.erb b/app/views/roles/_edit.html.erb
index d81db55..b74bc9f 100644
--- a/app/views/roles/_edit.html.erb
+++ b/app/views/roles/_edit.html.erb
@@ -1,6 +1,6 @@
<div id="content">
<% html = @role.new_record? ? {:method => :post} : {:method => :put} %>
- <% form_for(:product_role, @role, :url => product_roles_path(@product,@role),
:html => html) do |form| %>
+ <% form_for(:product_role, @role, :url => @role.new_record? ?
product_roles_path(:product => @product) : product_roles_path(@product,@role), :html
=> html) do |form| %>
<table class="edit">
<caption><%= "#{(a)role.new_record? ? 'Create' : 'Edit'}
Product Role" %></caption>
<tbody>
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 3e757ac..ad1709e 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -45,6 +45,7 @@ Change Log (0.3.0):
* #217 - All of a user's posts can be viewed.
* #218 - Sprints need a new stage called "proposed". (backed out)
* #220 - When a user has project admin rights, then the link will say "Create"
not "Request". (BUG)
+ * #221 - When requesting a product role, the URL is broken. (BUG)
* #222 - Fixed creating/editing products using the wrong URL. (BUG)
Change Log (0.2.0):
--
1.6.2.5
Show replies by date