Export hierarchies in non-HR format

Totara 12 introduced the ability to export organisation and position hierarchies in a format suitable for HR import. This may not be desirable for all use cases as this format is harder to read - particularly if there are multi-level hierarchies. The old format had a column for each hierarchy level making it easier to read.

To enable the old format, add the following line to the config.php file:

$CFG->hierarchylegacyexport = 1;

In Totara 12+ the data being exported for hierarchy frameworks were changed to export all fields instead of a hierarchical presentation of the elements in the framework. If $CFG->hierarchylegacyexport is set to 1, the old hierarchical presentation of the elements in the framework will be exported.