summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-02 19:17:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-02 19:17:42 +0000
commite5dc94fe82cba5a8f099f8512e95144fa3a6aca1 (patch)
treec22a40b066c30fe8335f6e6ecf176448c62b267d /app
parent7592a955fb1622606546e8c97b88af98bfd4261c (diff)
downloadredmine-e5dc94fe82cba5a8f099f8512e95144fa3a6aca1.tar.gz
redmine-e5dc94fe82cba5a8f099f8512e95144fa3a6aca1.zip
Make use of #watched_by? in issue form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3114 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_form.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml
index 5337b51be..032d08205 100644
--- a/app/views/issues/_form.rhtml
+++ b/app/views/issues/_form.rhtml
@@ -23,7 +23,7 @@
<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
<p><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.watcher_user_ids.include?(user.id) %> <%=h user %></label>
+<label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
<% end -%>
</p>
<% end %>