Skip to content

Commit

Permalink
searching for tag_names starting with what the user typed instead of …
Browse files Browse the repository at this point in the history
…any match, even if in the middle of the tag.

e.g.: input* instead of *input*, as it was before.
  • Loading branch information
bakkdoor committed Sep 7, 2008
1 parent f59838f commit 42c5443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def auto_complete_for_tag_name

@tags = Tag.find(:all,
:conditions => [ 'LOWER(name) LIKE ?',
'%' + tag_name.downcase + '%' ],
tag_name.downcase + '%' ],
:order => 'name ASC')

# only return tags, that aren't used yet...
Expand Down

0 comments on commit 42c5443

Please sign in to comment.