From 2714a20960b9b551327c160242cff9a6f9d0f88c Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 5 Mar 2014 10:16:35 +0100
Subject: [PATCH] No need to transfer undefined value.

---
 .../erp5_hal_json_style/ERP5Document_getHateoas.xml           | 4 +++-
 master/bt5/slapos_jio/bt/revision                             | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/master/bt5/slapos_jio/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml b/master/bt5/slapos_jio/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
index 0e1055525..c1bbd616c 100644
--- a/master/bt5/slapos_jio/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+++ b/master/bt5/slapos_jio/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
@@ -870,7 +870,9 @@ elif mode == \'search\':\n
       }\n
     }\n
     for select in select_list:\n
-      document_result[select] = document.getProperty(select, d=None)\n
+      property_value = document.getProperty(select, d=None)\n
+      if property_value is not None:\n
+        document_result[select] = property_value\n
     result_list.append(document_result)\n
   result_dict[\'_embedded\'] = {"contents": result_list}\n
 \n
diff --git a/master/bt5/slapos_jio/bt/revision b/master/bt5/slapos_jio/bt/revision
index 3cacc0b93..ca7bf83ac 100644
--- a/master/bt5/slapos_jio/bt/revision
+++ b/master/bt5/slapos_jio/bt/revision
@@ -1 +1 @@
-12
\ No newline at end of file
+13
\ No newline at end of file
-- 
2.30.9