mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 12:58:48 +01:00
replace 'None' project by empty string, fix #440
This commit is contained in:
parent
d7944c2464
commit
a29009d3da
8 changed files with 10 additions and 12 deletions
|
|
@ -1135,7 +1135,7 @@ end
|
|||
def update_project
|
||||
@project_changed = false;
|
||||
if params['todo']['project_id'].blank? && !params['project_name'].nil?
|
||||
if params['project_name'] == 'None'
|
||||
if params['project_name'].blank?
|
||||
project = Project.null_object
|
||||
else
|
||||
project = current_user.projects.where(:name => params['project_name'].strip).first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue