manuelmorales / teamtrick

Open source web application to implement Scrum built with Ruby on Rails.
http://team-trick.net
GNU Affero General Public License v3.0
36 stars 5 forks source link

Bug when an user is editing a history #37

Closed manuelmorales closed 14 years ago

manuelmorales commented 14 years ago

Un usuario quiere editar una tarea de una historia y al pinchar sobre ella sale la cabecera de la aplicación montada sobre la lista de tareas con el mensaje "Action not allowed."

Processing MessageController#index (for 127.0.0.1 at 2010-01-14 17:16:46)
[GET]
  Parameters: {"action"=>"index", "controller"=>"message"}
Rendering template within layouts/application
Rendering message/index
Completed in 16ms (View: 16, DB: 0) | 200 OK [http://localhost/message]
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
ssage]

Processing PlanningsController#row (for 127.0.0.1 at 2010-01-14 17:19:05)
[GET]
  Parameters: {"eid"=>"e3acaa77216566a2e8383e1a5c7fa4ac",
"project_id"=>"2", "mode"=>"current", "action"=>"row", "_metho
d"=>"get", "id"=>"79", "controller"=>"plannings"}
Completed in 32ms (View: 16, DB: 16) | 200 OK
[http://localhost/plannings/row/79?_method=get&eid=e3acaa77216566a2e8383e1
a5c7fa4ac&mode=current&project_id=2]

Processing PlanningsController#show (for 127.0.0.1 at 2010-01-14 17:19:08)
[GET]
  Parameters: {"eid"=>"e3acaa77216566a2e8383e1a5c7fa4ac",
"project_id"=>"2", "mode"=>"current", "action"=>"show", "_meth
od"=>"get", "adapter"=>"_list_inline_adapter", "id"=>"79",
"controller"=>"plannings"}
Start rendering component ({:controller=>"tasks",
:params=>{:mode=>"current", :eid=>"287a781970e11b5c1d178fbcb7a5e309"},
 :action=>"table"}):

Processing TasksController#table (for 127.0.0.1 at 2010-01-14 17:19:08)
[GET]
  Parameters: {"eid"=>"287a781970e11b5c1d178fbcb7a5e309",
"mode"=>"current", "action"=>"table", "id"=>nil, "controller"=
>"tasks"}
Rendering list
Completed in 297ms (View: 265, DB: 16) | 200 OK
[http://localhost/plannings/show/79?_method=get&eid=e3acaa77216566a2e838
3e1a5c7fa4ac&mode=current&project_id=2&adapter=_list_inline_adapter]

End of component rendering
Completed in 391ms (View: 16, DB: 0) | 200 OK
[http://localhost/plannings/show/79?_method=get&eid=e3acaa77216566a2e8383e
1a5c7fa4ac&mode=current&project_id=2&adapter=_list_inline_adapter]
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
ist_inline_adapter]

Processing TasksController#show (for 127.0.0.1 at 2010-01-14 17:19:11)
[GET]
  Parameters: {"eid"=>"287a781970e11b5c1d178fbcb7a5e309",
"mode"=>"current", "action"=>"show", "_method"=>"get", "adapte
r"=>"_list_inline_adapter", "id"=>"453", "controller"=>"tasks"}
Redirected to http://localhost:3000/message
manuelmorales commented 14 years ago

current_project do not work when showing task inside story because params[:project_id] is nil

manuelmorales commented 14 years ago

forgot to add project_id to params on a embedded scaffold. This should be refactored. see #40