Defect #12

Can't Save Changes to Project

Added by Jonathan Dance 580 days ago. Updated 580 days ago.

Status:Closed Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-

Description

Description:

Error is receiving when trying to submit project edit form. Tested in revision 329.

Steps to Reproduce:

1. Create a new project.
2. Edit the project.
3. Press "Save."

Actual Result:

NoMethodError in ProjectsController#edit

undefined method `destroy' for nil:NilClass
#{RAILS_ROOT}/app/controllers/projects_controller.rb:123:in `edit'

Expected result:

The project is edited successfully.

cant-edit-project-if-no-wiki.patch (541 Bytes) Jonathan Dance, 2008-02-03 10:48

Associated revisions

Revision 320
Added by jplang 582 days ago

modified textilizable helper method:
  • no more eval statement
  • r12 in text will be turned into a link to the revision 12 in the repository
  • #12 in text will be turned into a link to the issue 12

History

2007-03-12 12:02 - Jonathan Dance

Err, this was actually tested against revision 330 (which is
the current head
revision).

2007-03-12 12:05 - Jonathan Dance

Okay, I am a liar, this doesn't happen with all projects (I should
try my own
steps). It only happens when editing a project when that project
has a sub-
project.

2007-03-12 12:07 - Jonathan Dance

It also occurs when editing the sub-project... sorry for the
spam.

2007-03-12 12:16 - Jonathan Dance

Wow, okay... the real problem was you couldn't edit a project
unless it had a
wiki. See patch.

2007-03-12 13:34 - Jean-Philippe Lang

I've committed the fix.
Thanks for your help.

Also available in: Atom PDF