Actions
Defect #1143
openhudson plugin: empty filter attributes results in "undefined" filter value
Start date:
12/10/2012
Due date:
% Done:
0%
Estimated time:
Description
Btw. i already chekced drop down list in rendered hmtl view against pattern of "name": and there are complete, means alls entries with name <> empty and no more.
Then i found the last two entries without name attrib..
,"hudson_job":{"type":"list_optional","values":[]},"hudson_build":{"type":"integer"}}; var labelDayPlural = "Tage"; $(document).ready(function(){ initFilters(); addFilter("status_id", "o", [""]); });
The hudson plugins seems to extens the filters without name, so that could be the problem. I will write a bug report to the author.
Files
Updated by cforce cforce almost 12 years ago
The problem is missing :name (see last line) attrib in filter
See my example:
def available_filters_extended unless @available_filters available_filters_original.merge!({ 'exmpleattrib' => { :name => l(:exmpleattrib_label),
Updated by cforce cforce almost 12 years ago
Change code (untested) in /lib/query_patch.rb in def hudson_filters
@hudson_filters << HudsonQueryFilter.new("hudson_job", { :name => l(:hudson_job), :type => :list_optional, :order => @available_filters.size + 1, :values => HudsonJob.find(:all, :conditions => ["#{HudsonJob.table_name}.project_id = ?", project.id], :order => "#{HudsonJob.table_name}.name").collect {|job| next unless hudson.settings.job_include?(job.name) [job.name, job.id.to_s] } }, HudsonJob.table_name, "id") @hudson_filters << HudsonQueryFilter.new("hudson_build", { :name => l(:hudson_build), :type => :integer, :order => @available_filters.size + 2 }, HudsonBuild.table_name, "number") return @hudson_filters
Updated by Haru Iida almost 12 years ago
- Project changed from r-labs to Hudson
- Assignee set to Toshiyuki Ando
Updated by cforce cforce over 11 years ago
This ist still not fixed although i provided a working fix! Please integrate this into ur code soon.
Updated by cforce cforce over 11 years ago
- File query_patch.rb query_patch.rb added
Fixed file with correct labels
Actions