Parent of subcategories is not exported with CSV export

Bug #627732 reported by tlnd
12
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

Revision history for this message
tlnd (tlnd) wrote :

The data to be exported is provided by db.DatabaseAdapter.getAllCategoriesMap(), 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.
The required information about the hierarchy of the categories can be extracted from the left/right properties of a category, like done in getAllCategoriesTree() via CategoryTree.createFromCursor(). This mechanism obviously needs to be adopted.

Changed in financisto:
importance: Undecided → Medium
milestone: none → 1.4.1
status: New → Fix Committed
Changed in financisto:
assignee: nobody → tlnd (tlnd)
tlnd (tlnd)
Changed in financisto:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.