mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #4834 from Matt-Yorkley/3-0-bind-message
[Spree 2.1] PG::ProtocolViolation: ERROR: bind message supplies 0 parameters...
This commit is contained in:
@@ -63,7 +63,7 @@ class OrderCycle < ActiveRecord::Base
|
||||
if user.has_spree_role?('admin')
|
||||
where(nil)
|
||||
else
|
||||
where(coordinator_id: user.enterprises)
|
||||
where(coordinator_id: user.enterprises.to_a)
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user