Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Fix rule condition merchant dropdown to show all merchants (#1240)

Dream46494bc07fcb
diff --git a/app/models/rule/condition_filter/transaction_merchant.rb b/app/models/rule/condition_filter/transaction_merchant.rb
index 581db1cdf0..cc6f076443 100644
--- a/app/models/rule/condition_filter/transaction_merchant.rb
+++ b/app/models/rule/condition_filter/transaction_merchant.rb
@@ -4,7 +4,7 @@ class Rule::ConditionFilter::TransactionMerchant < Rule::ConditionFilter
end
def options
- family.assigned_merchants.alphabetically.pluck(:name, :id)
+ family.available_merchants.alphabetically.pluck(:name, :id)
end
def prepare(scope)