mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 22:22:37 +01:00
Blanking out a project name when editing a todo will now remove the todo from the project.
Also fixed the reference to test/selenium_helper.rb in the test/environment.rb to be pathed more reliably. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@487 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
02de36876e
commit
704d39add1
4 changed files with 19 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ class TodosController < ApplicationController
|
|||
@original_item_context_id = @todo.context_id
|
||||
@original_item_project_id = @todo.project_id
|
||||
@original_item_was_deferred = @todo.deferred?
|
||||
if params['todo']['project_id'].blank? && !params['project_name'].blank?
|
||||
if params['todo']['project_id'].blank? && !params['project_name'].nil?
|
||||
if params['project_name'] == 'None'
|
||||
project = Project.null_object
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue