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:
Pau Pérez Fabregat
2020-03-05 19:31:06 +01:00
committed by GitHub

View File

@@ -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
}