Mercurial > hg > soundsoftware-site
changeset 1142:7c3de6c7b7f5 redmine-2.2-integration
Syntax fixes
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 10 Jan 2013 15:25:28 +0000 |
parents | c852c89f5de1 |
children | 908e97507ef8 |
files | app/controllers/issues_controller.rb |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controllers/issues_controller.rb Thu Jan 10 15:23:50 2013 +0000 +++ b/app/controllers/issues_controller.rb Thu Jan 10 15:25:28 2013 +0000 @@ -144,8 +144,8 @@ call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) # 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]): + 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 @@ -377,8 +377,8 @@ # is in this issues watcher's list # if not, adds it. - if params[:issue] && params[:issue][:assigned_to_id] && !params[:issue][:assigned_to_id].empty?: - unless @issue.watched_by?(User.find(params[:issue][:assigned_to_id])): + if params[:issue] && params[:issue][:assigned_to_id] && !params[:issue][:assigned_to_id].empty? + unless @issue.watched_by?(User.find(params[:issue][:assigned_to_id])) @issue.add_watcher(User.find(params[:issue][:assigned_to_id])) end end