aboutsummaryrefslogtreecommitdiff
path: root/views/json/export/relationship.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/json/export/relationship.php')
-rw-r--r--views/json/export/relationship.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/json/export/relationship.php b/views/json/export/relationship.php
index 22acbba92..004ce9864 100644
--- a/views/json/export/relationship.php
+++ b/views/json/export/relationship.php
@@ -14,9 +14,11 @@
$r = $vars['relationship'];
$export = new stdClass;
+
+ $exportable_values = $entity->getExportableValues();
- foreach ($r as $k => $v)
- $export->$k = $v;
+ foreach ($exportable_values as $v)
+ $export->$v = $r->$v;
echo json_encode($export);
?> \ No newline at end of file