Parent of subcategories is not exported with CSV export
Bug #627732 reported by
tlnd
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Financisto |
Fix Released
|
Medium
|
tlnd |
Bug Description
Data exported via the "CSV Export" does not include information about the parent of subcategories. Even though a 'parent' field is defined in the header, its content is always empty ("") for both first-level categories as well as subcategories.
Related branches
lp:~tlnd/financisto/csv-export
- Denis Solonenko: Approve
-
Diff: 344 lines (+136/-40)8 files modifiedassets/credits.htm (+1/-1)
res/layout/csv_export.xml (+38/-25)
res/values-de/strings.xml (+5/-3)
res/values/common.xml (+5/-0)
res/values/strings.xml (+2/-0)
src/ru/orangesoftware/financisto/activity/CsvExportActivity.java (+55/-2)
src/ru/orangesoftware/financisto/activity/MainActivity.java (+12/-5)
src/ru/orangesoftware/financisto/export/CSVExport.java (+18/-4)
Changed in financisto: | |
importance: | Undecided → Medium |
milestone: | none → 1.4.1 |
status: | New → Fix Committed |
Changed in financisto: | |
assignee: | nobody → tlnd (tlnd) |
Changed in financisto: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The data to be exported is provided by db.DatabaseAdap ter.getAllCateg oriesMap( ), which gathers the categories from the database and creates according objects. However, the database does not include direct information about a parent of a category, thus the parent field is always null. sTree() via CategoryTree. createFromCurso r(). This mechanism obviously needs to be adopted.
The required information about the hierarchy of the categories can be extracted from the left/right properties of a category, like done in getAllCategorie