The personal finance app for everyone
Fix bug where transactions were duplicated in import confirm (#941)
Luke Hurstcf23453d935f
diff --git a/app/views/imports/confirm.html.erb b/app/views/imports/confirm.html.erbindex 46491abb..b973f251 100644--- a/app/views/imports/confirm.html.erb+++ b/app/views/imports/confirm.html.erb@@ -13,7 +13,7 @@<% transaction_entries.group_by(&:date).each do |date, transactions| %><%= render "account/entries/entry_group",date: date,- entries: transaction_entries,+ entries: transactions,show_tags: true,selectable: false,editable: false %>diff --git a/test/system/imports_test.rb b/test/system/imports_test.rbindex b9ee4f8c..98f9614e 100644--- a/test/system/imports_test.rb+++ b/test/system/imports_test.rb@@ -89,6 +89,7 @@ class ImportsTest < ApplicationSystemTestCase# 5) Confirm stepassert_selector "h1", text: "Confirm import"+ assert_selector "#new_account_entry", count: 2click_button "Import 2 transactions"assert_selector "h1", text: "Imports"end