Permalink
Browse files

fixed bug caused by OpenStruct.id

  • Loading branch information...
1 parent 85547b4 commit 8cb1823e47a310da80aba5ce6af7a0d1a134b6d3 @kikito kikito committed Nov 17, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/redmine_project_filtering/patches/projects_controller_patch.rb
@@ -57,7 +57,8 @@ def calculate_filtered_projects
@projects = Project.visible
if license_plugin_detected?
- nil_license_version = OpenStruct.new(:id => nil, :title => "")
+ nil_license_version = OpenStruct.new(:id => "", :title => "")
+ nil_license_version.instance_eval('undef id')
@license_versions = [nil_license_version] + LicenseVersion.for_select.all
@projects = @projects.with_license_id(@license_version_id) if @license_version_id.present?
end

0 comments on commit 8cb1823

Please sign in to comment.