# HG changeset patch # User Chris Cannam # Date 1295451299 0 # Node ID bf38a7365edfa6d3634c11223558e36bdb429d9e # Parent cede720e8f534fd88cb89c1fecea7166a8f615fe# Parent 6a2f8e88344ebf1e36bec0534350af0ed440e182 Merge fixes for bug #51 and bug #35 from branch "cannam-pre-20110113-merge" diff -r 6a2f8e88344e -r bf38a7365edf app/controllers/issues_controller.rb --- a/app/controllers/issues_controller.rb Wed Jan 19 13:27:01 2011 +0000 +++ b/app/controllers/issues_controller.rb Wed Jan 19 15:34:59 2011 +0000 @@ -136,14 +136,14 @@ call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) # Adds user to watcher's list - @issue.add_watcher(User.current) + # @issue.add_watcher(User.current) # Also adds the assignee to the watcher's list - if params[:issue][:assigned_to_id] && !params[:issue][:assigned_to_id].empty?: - unless @issue.watcher_ids.include?(params[:issue][:assigned_to_id]): - @issue.add_watcher(User.find(params[:issue][:assigned_to_id])) - end - end + # if params[:issue][:assigned_to_id] && !params[:issue][:assigned_to_id].empty?: + # unless @issue.watcher_ids.include?(params[:issue][:assigned_to_id]): + # @issue.add_watcher(User.find(params[:issue][:assigned_to_id])) + # end + # end respond_to do |format| format.html { @@ -291,11 +291,11 @@ # is in this issues watcher's list # if not, adds it. - if params[:issue][:assigned_to_id] && !params[:issue][:assigned_to_id].empty?: - unless @issue.watcher_ids.include?(params[:issue][:assigned_to_id]): - @issue.add_watcher(User.find(params[:issue][:assigned_to_id])) - end - end + # if params[:issue][:assigned_to_id] && !params[:issue][:assigned_to_id].empty?: + # unless @issue.watcher_ids.include?(params[:issue][:assigned_to_id]): + # @issue.add_watcher(User.find(params[:issue][:assigned_to_id])) + # end + # end end diff -r 6a2f8e88344e -r bf38a7365edf app/models/issue.rb --- a/app/models/issue.rb Wed Jan 19 13:27:01 2011 +0000 +++ b/app/models/issue.rb Wed Jan 19 15:34:59 2011 +0000 @@ -527,7 +527,8 @@ # Returns a string of css classes that apply to the issue def css_classes - s = "issue status-#{status.position} priority-#{priority.position}" + s = "issue status-#{status.position} " + s << "priority-#{priority.position}" s << ' closed' if closed? s << ' overdue' if overdue? s << ' created-by-me' if User.current.logged? && author_id == User.current.id diff -r 6a2f8e88344e -r bf38a7365edf app/views/welcome/index.rhtml --- a/app/views/welcome/index.rhtml Wed Jan 19 13:27:01 2011 +0000 +++ b/app/views/welcome/index.rhtml Wed Jan 19 15:34:59 2011 +0000 @@ -9,14 +9,6 @@