mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
In a previous commit we removed the now obsolete scope Product.not_deleted. Calling Enterprise#supplied_products without any scope does not issue a new SQL query but returns the products that were present when the enterprise was loaded. The fixed spec creates more products after loading the enterprise. So the enterprise needs to be reloaded or the new products are not visible.