Fix parent node for edit link in reports and exports

Fix query for getParent function (it was 'backwards'). Fix csv export link for non-node rows (it had entity_id but should have had the process id, which is 'id' from the result array.)

Merge request reports

Loading