Project

General

Profile

Actions

Defect #12

closed

Can't Save Changes to Project

Added by Jonathan Dance about 17 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected 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.


Files

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

Updated by Jonathan Dance about 17 years ago

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

Actions #2

Updated by Jonathan Dance about 17 years ago

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.

Actions #3

Updated by Jonathan Dance about 17 years ago

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

Actions #4

Updated by Jonathan Dance about 17 years ago

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

Actions #5

Updated by Jean-Philippe Lang about 17 years ago

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

Actions

Also available in: Atom PDF