Revision 1283:006057cf8f16 plugins/redmine_bibliography/app/controllers
| plugins/redmine_bibliography/app/controllers/publications_controller.rb | ||
|---|---|---|
| 226 | 226 |
@object_name = "publications[authorships_attributes][#{object_id}][search_results]"
|
| 227 | 227 |
|
| 228 | 228 |
# cc 20110909 -- revert to like instead of like_unique -- see #289 |
| 229 |
authorships_list = Authorship.like(params[:q]).find(:all, :limit => 100)
|
|
| 230 |
users_list = User.active.like(params[:q]).find(:all, :limit => 100)
|
|
| 229 |
authorships_list = Authorship.like(params[:term]).find(:all, :limit => 100)
|
|
| 230 |
users_list = User.active.like(params[:term]).find(:all, :limit => 100)
|
|
| 231 | 231 |
|
| 232 |
logger.debug "Query for \"#{params[:q]}\" returned \"#{authorships_list.size}\" authorships and \"#{users_list.size}\" users"
|
|
| 232 |
logger.debug "Query for \"#{params[:term]}\" returned \"#{authorships_list.size}\" authorships and \"#{users_list.size}\" users"
|
|
| 233 | 233 |
|
| 234 | 234 |
@results = users_list |
| 235 | 235 |
|
Also available in: Unified diff