if params[:characteristic_id]
@characteristic=Characteristic.find(params[:characteristic_id])
elsif params[:model] && params[:characteristic]
- @characteristic=Characteristic.find(:first, :select => 'id', :include => 'quality_model', :conditions => ['quality_models.name=? AND characteristics.kee=?', params[:model], params[:characteristic]])
+ @characteristic=Characteristic.find(:first, :select => 'id', :include => 'quality_model', :conditions => ['quality_models.name=? AND characteristics.kee=? AND characteristics.enabled=?', params[:model], params[:characteristic], true])
end
options[:characteristic]=@characteristic