mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 23:41:48 +01:00
Autocompletion for predecessors working
This commit is contained in:
parent
d0a5f6b731
commit
71b0e188c1
5 changed files with 7 additions and 15 deletions
|
|
@ -620,7 +620,7 @@ class TodosController < ApplicationController
|
|||
:conditions => [ '(todos.state = ? OR todos.state = ?) AND ' +
|
||||
'NOT (id = ?) AND lower(description) LIKE ?',
|
||||
'active', 'pending',
|
||||
params[:id], '%' + params[:predecessor_list].downcase + '%' ],
|
||||
params[:id], '%' + params[:q].downcase + '%' ],
|
||||
:order => 'description ASC',
|
||||
:limit => 10
|
||||
)
|
||||
|
|
@ -631,7 +631,7 @@ class TodosController < ApplicationController
|
|||
:select => 'description, project_id, context_id, created_at',
|
||||
:conditions => [ '(todos.state = ? OR todos.state = ?) AND lower(description) LIKE ?',
|
||||
'active', 'pending',
|
||||
'%' + params[:predecessor_list].downcase + '%' ],
|
||||
'%' + params[:q].downcase + '%' ],
|
||||
:order => 'description ASC',
|
||||
:limit => 10
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue