Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/stories/_edit.html.erb | 5 ++---
doc/ChangeLog | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/views/stories/_edit.html.erb b/app/views/stories/_edit.html.erb
index 22b312b..0fec1e8 100644
--- a/app/views/stories/_edit.html.erb
+++ b/app/views/stories/_edit.html.erb
@@ -1,8 +1,7 @@
<div id="content-no-sidebar">
<% html = @user_story.new_record? ? {:method => :post} : {:method => :put}
%>
-
- <% form_for(:user_story, @user_story,
- :url => stories_path(@user_story), :html => html) do |form| %>
+ <% url = @user_story.new_record? ? stories_path(:product => @product) :
story_path(@user_story) %>
+ <% form_for(:user_story, @user_story, :url => url, :html => html) do |form|
%>
<%= hidden_field_tag :product, @product.id %>
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 1f992fe..ee43aa4 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -52,6 +52,7 @@ Change Log (0.3.0):
* #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)
+ * #223 - Fixed creating/editing user stories using the wrong URL. (BUG)
* #226 - The sprint status text is not shown on the sprint list page. (BUG)
* #228 - Fixed the URL in the product creation RSS entry. (BUG)
* #229 - Fixed when nil.name showed up when viewing sprints. (BUG)
--
1.6.2.5
Show replies by date