Fix the CSV importer failing when using PostgreSQL

Add ordered column to the list of columns that are selected so PostgreSQL doesn't throw an error
This commit is contained in:
Sander Kleykens
2016-10-06 23:49:33 +02:00
parent 5c239c91db
commit cf543613c9

View File

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