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