Fix nil-check. for 'obj'.

pull/561/head
Christian Rijke 11 years ago
parent cff95af6a6
commit d65837236a
  1. 2
      app/helpers/application_helper.rb

@ -735,7 +735,7 @@ module ApplicationHelper
elsif sep == '###'
oid = identifier.to_i
work_package = WorkPackage.visible.find_by_id(oid, :include => :status)
if work_package && !(text == :description && obj && obj.id == work_package.id)
if work_package && obj && !(attr == :description && obj.id == work_package.id)
link = work_package_quick_info_with_description(work_package)
end
elsif sep == ':'

Loading…
Cancel
Save