issue列表数字不准确性判断
This commit is contained in:
parent
f3ac21ed42
commit
5afaeeb76d
|
@ -259,7 +259,7 @@ module QueriesHelper
|
|||
params[:op] = {'subject' => "~" ,
|
||||
'status_id' => ( params[:status_id] == '0' ? "!":"=" ),
|
||||
'author_id' =>(params[:author_id] == '0' ? "!":"=" ),
|
||||
'done_ratio' => ( params[:done_ratio]),
|
||||
'done_ratio' => ( params[:done_ratio]== '-1' ? "!":"="),
|
||||
'tracker_id' => ( params[:tracker_id] == '0' ? "!":"=" ),
|
||||
'fixed_version_id' => ( params[:fixed_version_id] == '0' ? "!":"=" ),
|
||||
'assigned_to_id' => ( params[:assigned_to_id] == '0' ? "!":"=" )} unless params[:status_id].nil?
|
||||
|
|
|
@ -175,8 +175,8 @@
|
|||
<%#= select(:issue, :done_ratio, [["10%",1],["20%",2],["30%",3],["40%",4],["50%",5],["60%",6],["70%",7],["80%",8],["90%",9],["100%",10]].unshift(["完成度",0]),
|
||||
{:include_blank => false, :selected => @done_ratio ? @done_ratio : 0 },
|
||||
{:onchange => "remote_function();", :id => "done_ratio", :name => "done_ratio", :class => "f1"}) %>
|
||||
<%= select( :issue,:done_ratio, ((1..10).to_a.collect { |r| ["#{r*10} %", r*10] }).unshift(["完成度",0]),
|
||||
{:include_blank => false, :selected => @done_ratio ? @done_ratio : 0},
|
||||
<%= select( :issue,:done_ratio, ((0..10).to_a.collect { |r| ["#{r*10} %", r*10] }).unshift(["完成度",-1]),
|
||||
{:include_blank => false, :selected => @done_ratio ? @done_ratio : -1},
|
||||
{:onchange=>"remote_function();",:id=>"done_ratio",:name=>"done_ratio",:class=>"fl"}) %>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue