Mercurial > hg > soundsoftware-site
diff app/views/issues/_form.rhtml @ 141:ab75f33dcc6f luisf
Issue #31: issue submitters and assignees are added to the watchers list.
incomplete: there is no option to select/unselect the assignee.
author | luisf |
---|---|
date | Thu, 20 Jan 2011 13:08:43 +0000 |
parents | 11328a082ef3 |
children | 753f1380d6bc |
line wrap: on
line diff
--- a/app/views/issues/_form.rhtml Wed Jan 12 17:10:57 2011 +0000 +++ b/app/views/issues/_form.rhtml Thu Jan 20 13:08:43 2011 +0000 @@ -35,7 +35,7 @@ <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> <% @issue.project.users.sort.each do |user| -%> -<label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> +<label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, !!(@issue.watched_by?(user) or user == User.current) %> <%=h user %></label> <% end -%> </p> <% end %>