Commit e17b6482 authored by Papa Tamsir Kane's avatar Papa Tamsir Kane Committed by Papa Tamsir Kane

erp5_officejs: Bookmark Manager, update migration code

parent df74a9f6
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
// This is migration code from url_string to coordinate_text. // This is migration code from url_string to coordinate_text.
// Can be removed whenever deemed no longer necessary. // Can be removed whenever deemed no longer necessary.
// May consider removing aquired method jio_put and setSetting above. // May consider removing aquired method jio_put and setSetting above.
// Also remove [url_string, url_string] from column list below.
// begin migration code // begin migration code
.allowPublicAcquisition("jio_allDocs", function (param_list) { .allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this, data, query_result; var gadget = this, data, query_result;
param_list[0].select_list.push('url_string');
return gadget.jio_allDocs(param_list[0]) return gadget.jio_allDocs(param_list[0])
.push(function (result) { .push(function (result) {
query_result = result; query_result = result;
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
} }
}) })
.push(function () { .push(function () {
param_list[0].select_list.pop('url_string');
return data; return data;
}); });
}) })
...@@ -81,8 +82,7 @@ ...@@ -81,8 +82,7 @@
['reference', 'Reference'], ['reference', 'Reference'],
['title', 'Title'], ['title', 'Title'],
['coordinate_text', 'Url'], ['coordinate_text', 'Url'],
['description', 'Description'], ['description', 'Description']
['url_string', 'url_string']
]; ];
return result[0].render({ return result[0].render({
erp5_document: { erp5_document: {
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.4164.48194.47035</string> </value> <value> <string>962.5348.11380.64921</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1505311051.82</float> <float>1505382104.85</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment