mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Fix a bug when generating predecessor autocomplete data
This commit is contained in:
parent
a1b270699d
commit
a60b4389cd
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ class TodosController < ApplicationController
|
|||
reorder('description ASC').
|
||||
limit(10) unless @todo.project.nil?
|
||||
# Then look in the current context, excluding @todo itself
|
||||
@items = @todo.context.todos.not_completed
|
||||
@items = @todo.context.todos.not_completed.
|
||||
where('(LOWER(todos.description) LIKE ?) AND NOT(todos.id=?)', "%#{params[:term].downcase}%", @todo.id).
|
||||
includes(:context, :project).
|
||||
reorder('description ASC').
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue