[#6898] Check for project variable before using

This commit is contained in:
Eric Davis
2012-05-15 10:45:12 -07:00
parent 2c2ce0d9f3
commit 30e7142c50

View File

@@ -1,4 +1,4 @@
<% if project.module_enabled?(:contracts) && User.current.allowed_to?(:assign_deliverable_to_issue, project) %>
<% if project && project.module_enabled?(:contracts) && User.current.allowed_to?(:assign_deliverable_to_issue, project) %>
<p>
<%= label_tag(:deliverable_id, l(:field_deliverable)) %>
<%= select_tag('deliverable_id',