From da6a7da99d675f54af8e7c086e1ecdfbf5424227 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 11 Mar 2021 21:54:08 +0000 Subject: [PATCH] Remove sanitize This was added here for no specific reason I think, it's just an id, I dont think we need this https://github.com/openfoodfoundation/openfoodnetwork/commit/1d83809866a93f91a507991c12b4e60630ab6fc0 --- app/models/spree/variant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/variant.rb b/app/models/spree/variant.rb index 93430b3b2b..71c10a16e3 100644 --- a/app/models/spree/variant.rb +++ b/app/models/spree/variant.rb @@ -114,7 +114,7 @@ module Spree joins(" LEFT OUTER JOIN (SELECT * FROM inventory_items - WHERE enterprise_id = #{sanitize enterprise.andand.id}) + WHERE enterprise_id = #{enterprise.andand.id}) AS o_inventory_items ON o_inventory_items.variant_id = spree_variants.id") .where("o_inventory_items.id IS NULL OR o_inventory_items.visible = (?)", true)