Patch #3370 ยป actual_version.patch
| app/models/project.rb (Arbeitskopie) | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
|
||
|
# Returns only the actual Versions
|
||
|
def actual_versions
|
||
|
versions.find_all{|v| !v.completed?}
|
||
|
end
|
||
|
protected
|
||
|
def validate
|
||
|
errors.add(:identifier, :invalid) if !identifier.blank? && identifier.match(/^\d*$/)
|
||
| app/views/issues/_form.rhtml (Arbeitskopie) | ||
|---|---|---|
|
:class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
|
||
|
<% end %>
|
||
|
<%= content_tag('p', f.select(:fixed_version_id,
|
||
|
(@project.versions.sort.collect {|v| [v.name, v.id]}),
|
||
|
{ :include_blank => true })) unless @project.versions.empty? %>
|
||
|
(@project.actual_versions.sort.collect {|v| [v.name, v.id]}),
|
||
|
{ :include_blank => true })) unless @project.actual_versions.empty? %>
|
||
|
</div>
|
||
|
<div class="splitcontentright">
|
||