diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js index 1c518427902045bb6829e862c91abbbbf5a31a30..ef1275b8fb1c541df6a5f06cc84dbb344596fbbe 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js @@ -13111,7 +13111,12 @@ return new Parser; _linshare_uuid: entry_list[i].uuid }; if (options.include_docs === true) { - entry.doc = JSON.parse(entry_list[i].metaData) || {}; + try { + entry.doc = JSON.parse(entry_list[i].metaData) || {}; + } catch (error) { + // Metadata are not always JSON + entry.doc = {}; + } } result_list.push(entry); diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml index c5fe780e6ed13d8047ee4e995a20a046815be1d3..3abe1ab24efd8376f0ee5c51f33f2f4dda74d86e 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml @@ -234,7 +234,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>973.4826.12688.30276</string> </value> + <value> <string>973.43645.19782.57207</string> </value> </item> <item> <key> <string>state</string> </key> @@ -252,7 +252,7 @@ </tuple> <state> <tuple> - <float>1548090618.17</float> + <float>1550160394.98</float> <string>UTC</string> </tuple> </state> diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js index 1c518427902045bb6829e862c91abbbbf5a31a30..ef1275b8fb1c541df6a5f06cc84dbb344596fbbe 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/jio.js.js @@ -13111,7 +13111,12 @@ return new Parser; _linshare_uuid: entry_list[i].uuid }; if (options.include_docs === true) { - entry.doc = JSON.parse(entry_list[i].metaData) || {}; + try { + entry.doc = JSON.parse(entry_list[i].metaData) || {}; + } catch (error) { + // Metadata are not always JSON + entry.doc = {}; + } } result_list.push(entry);