mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix relation/array modification issues in EnterprisesHelper
This commit is contained in:
@@ -25,7 +25,7 @@ module EnterprisesHelper
|
||||
def available_payment_methods
|
||||
return [] if current_distributor.blank?
|
||||
|
||||
payment_methods = current_distributor.payment_methods.available(:front_end).all
|
||||
payment_methods = current_distributor.payment_methods.available(:front_end).to_a
|
||||
|
||||
filter = OpenFoodNetwork::AvailablePaymentMethodFilter.new
|
||||
filter.filter!(payment_methods)
|
||||
|
||||
Reference in New Issue
Block a user