Mercurial > hg > soundsoftware-site
changeset 116:66c73df314fa luisf
Merge my two branches
author | Luis Figueira <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 12 Jan 2011 17:10:57 +0000 |
parents | 3e75f003034a (current diff) b0086cb55640 (diff) |
children | ab75f33dcc6f |
files | |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controllers/issues_controller.rb Wed Jan 12 17:06:18 2011 +0000 +++ b/app/controllers/issues_controller.rb Wed Jan 12 17:10:57 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