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