diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index a74146a8..ae745ab6 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -416,6 +416,14 @@ class TodosController < ApplicationController @title << " actions completed" @description << " in the last #{done_in_last.to_s} days" end + + if params.key?('tag') + tag = Tag.find_by_name(params['tag']) + if tag.nil? + tag = Tag.new(:name => params['tag']) + end + condition_builder.add('taggings.tag_id = ?', tag.id) + end Todo.send :with_scope, :find => {:conditions => condition_builder.to_conditions} do yield diff --git a/app/views/feedlist/index.html.erb b/app/views/feedlist/index.html.erb index 7c9ed482..8beace82 100644 --- a/app/views/feedlist/index.html.erb +++ b/app/views/feedlist/index.html.erb @@ -54,6 +54,11 @@ <%= text_formatted_link({:controller => 'projects', :action => 'index', :only_active_with_no_next_actions => true}) %> Active projects with no next actions +