mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
Fix project and context creation rendering, which was failing because the hash for tracking the number of actions in a project or context had not been defined. Fixes #341.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@299 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
d9e3c94a17
commit
1f6a99a27f
2 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ class ContextController < ApplicationController
|
||||||
@context.attributes = params['context']
|
@context.attributes = params['context']
|
||||||
@context.name = deurlize(@context.name)
|
@context.name = deurlize(@context.name)
|
||||||
@saved = @context.save
|
@saved = @context.save
|
||||||
|
@context_not_done_counts = { @context.id => 0 }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Called by a form button
|
# Called by a form button
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ class ProjectController < ApplicationController
|
||||||
@project.attributes = params['project']
|
@project.attributes = params['project']
|
||||||
@project.name = deurlize(@project.name)
|
@project.name = deurlize(@project.name)
|
||||||
@saved = @project.save
|
@saved = @project.save
|
||||||
|
@project_not_done_counts = { @project.id => 0 }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Called by a form button
|
# Called by a form button
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue