Parcourir la source

code layout clean up app/controllers/issues_controller.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18718 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA il y a 4 ans
Parent
révision
f891a28152
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      app/controllers/issues_controller.rb

+ 3
- 1
app/controllers/issues_controller.rb Voir le fichier

@@ -284,7 +284,9 @@ class IssuesController < ApplicationController
if @copy
@attachments_present = @issues.detect {|i| i.attachments.any?}.present?
@subtasks_present = @issues.detect {|i| !i.leaf?}.present?
@watchers_present = User.current.allowed_to?(:add_issue_watchers, @projects) && Watcher.where(:watchable_type => 'Issue', :watchable_id => @issues.map(&:id)).exists?
@watchers_present = User.current.allowed_to?(:add_issue_watchers, @projects) &&
Watcher.where(:watchable_type => 'Issue',
:watchable_id => @issues.map(&:id)).exists?
end

@safe_attributes = edited_issues.map(&:safe_attribute_names).reduce(:&)

Chargement…
Annuler
Enregistrer