Commit 4afdb24a authored by Sven Franck's avatar Sven Franck

js/data: removed portal_type_fieldlist from routine

parent eeb39eb8
...@@ -90,7 +90,6 @@ ...@@ -90,7 +90,6 @@
}, { }, {
"portal_type_source": "Product", "portal_type_source": "Product",
"portal_type_title": "product", "portal_type_title": "product",
"portal_type_fields": "product_fieldlist",
"skip_total_records": true, "skip_total_records": true,
"initial_query": {"query": "subject: 'best'", "include_docs": true, "limit": [0,4], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]}, "initial_query": {"query": "subject: 'best'", "include_docs": true, "limit": [0,4], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": { "property_dict": {
...@@ -133,7 +132,6 @@ ...@@ -133,7 +132,6 @@
}, { }, {
"portal_type_source": "Product", "portal_type_source": "Product",
"portal_type_title": "product", "portal_type_title": "product",
"portal_type_fields": "product_fieldlist",
"skip_total_records": true, "skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,8], "sort_on": [["date_created", "descending"]], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]}, "initial_query": {"include_docs": true, "limit": [0,8], "sort_on": [["date_created", "descending"]], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": { "property_dict": {
......
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
}, { }, {
"portal_type_source": "Portal Category", "portal_type_source": "Portal Category",
"portal_type_title": "category", "portal_type_title": "category",
"portal_type_fields": "category_fieldlist",
"initial_query": {"query": "reference: 'product_category'", "include_docs": true, "select_list": ["title", "title_i18n"]}, "initial_query": {"query": "reference: 'product_category'", "include_docs": true, "select_list": ["title", "title_i18n"]},
"property_dict": { "property_dict": {
"check": true "check": true
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
{ {
"portal_type_source": "Portal Category", "portal_type_source": "Portal Category",
"portal_type_title": "category", "portal_type_title": "category",
"portal_type_fields": "category_fieldlist",
"initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["title", "title_i18n"]}, "initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["title", "title_i18n"]},
"property_dict": { "property_dict": {
"check": true "check": true
......
...@@ -5861,15 +5861,13 @@ ...@@ -5861,15 +5861,13 @@
// test for auth based access // test for auth based access
pass.grant = true; pass.grant = true;
// fetch field definitions // fetch field definitions - why make a query without fieldlist?
if ((pass.grant || pass.mode === "new") && if (pass.grant || pass.mode === "new") {
pass.config_dict.portal_type_fields
) {
app.util.loader("", "status_dict.loading_config"); app.util.loader("", "status_dict.loading_config");
return storage.fetchConfigAttachment({ return storage.fetchConfigAttachment({
"storage": app.storage_dict.settings, "storage": app.storage_dict.settings,
"file": app.storage_dict.property_dict.name_dict.data_type, "file": app.storage_dict.property_dict.name_dict.data_type,
"attachment": pass.config_dict.portal_type_fields, "attachment": pass.config_dict.portal_type_title + "_fieldlist",
"pass": pass "pass": pass
}); });
} }
......
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