mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
Fixes #402. "The AutoCompleter? for the project field does not work when adding a new Next Action if any of your Project names have an apostrophe in them. (Like a project named "Steve's bike")."
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@355 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
7cc9f27cc3
commit
e96d91c5c0
1 changed files with 2 additions and 2 deletions
|
|
@ -125,11 +125,11 @@ module TodoHelper
|
|||
end
|
||||
|
||||
def project_names_for_autocomplete
|
||||
array_or_string_for_javascript( ['None'] + @projects.collect{|p| p.name } )
|
||||
array_or_string_for_javascript( ['None'] + @projects.collect{|p| escape_javascript(p.name) } )
|
||||
end
|
||||
|
||||
def context_names_for_autocomplete
|
||||
array_or_string_for_javascript( @contexts.collect{|c| c.name } )
|
||||
array_or_string_for_javascript( @contexts.collect{|c| escape_javascript(c.name) } )
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue