##// END OF EJS Templates
In case the column is not found....
Jean-Philippe Lang -
r9891:bdd29295b49d
parent child
Show More
@@ -902,7 +902,7 class Query < ActiveRecord::Base
902 902 end
903 903 order_options.scan(/cf_\d+/).uniq.each do |name|
904 904 column = available_columns.detect {|c| c.name.to_s == name}
905 join = column.custom_field.join_for_order_statement
905 join = column && column.custom_field.join_for_order_statement
906 906 if join
907 907 joins << join
908 908 end
General Comments 0
You need to be logged in to leave comments. Login now