Skip to content

Firefly III: a personal finances manager

Fix the CSV importer failing when using PostgreSQL

Sander Kleykenscf543613c93b
diff --git a/app/Import/ImportStorage.php b/app/Import/ImportStorage.php
index 3fdb48cc79..8b4986a9fe 100644
--- a/app/Import/ImportStorage.php
+++ b/app/Import/ImportStorage.php
@@ -185,7 +185,7 @@ class ImportStorage
->where('rules.active', 1)
->orderBy('rule_groups.order', 'ASC')
->orderBy('rules.order', 'ASC')
- ->get(['rules.*']);
+ ->get(['rules.*', 'rule_groups.order']);
Log::debug(sprintf('Found %d user rules.', $set->count()));
return $set;