Skip to content

Commit

Permalink
Fix grids import
Browse files Browse the repository at this point in the history
Items weren't attached to any grid on import
  • Loading branch information
quentin-st committed Oct 18, 2015
1 parent b72418a commit 43d5adf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static void applyGridsImport(Context context, JSONObject jsonObject, List
removeIdsFromGrids(currentGridsNames, newGrids);

for (Grid grid : newGrids) {
muninFoo.sqlite.dbHlpr.insertGrid(grid.getName());
grid.setId(muninFoo.sqlite.dbHlpr.insertGrid(grid.getName()));
muninFoo.sqlite.dbHlpr.insertGridItemRelations(grid.getItems());
}
}
Expand Down

0 comments on commit 43d5adf

Please sign in to comment.