mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
80669: Merged WAT1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 78166: ACE-1582: Enhancements to the facet service to persist only the modified value(s) rather than the whole facet's properties. Also fixed facets cache and facets reordering NPE. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82966 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
"site2",
|
||||
"site1"
|
||||
],
|
||||
"index" : 5,
|
||||
"isEnabled" : true,
|
||||
"isDefault" : true
|
||||
}
|
||||
|
@@ -38,8 +38,7 @@
|
||||
</#list>
|
||||
},
|
||||
</#if>
|
||||
"index" : ${facet.index?c},
|
||||
"isEnabled" : ${facet.enabled?c},
|
||||
"isEnabled" : ${facet.isEnabled()?c},
|
||||
"isDefault" : ${facet.default?c}
|
||||
</#escape>
|
||||
</#macro>
|
||||
|
@@ -23,7 +23,6 @@
|
||||
"site2",
|
||||
"site1"
|
||||
],
|
||||
"index" : 6, // optional
|
||||
"isEnabled" : true // optional
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,6 @@
|
||||
"site2",
|
||||
"site1"
|
||||
],
|
||||
"index" : 6, // optional
|
||||
"isEnabled" : true // optional
|
||||
}</pre><br/>
|
||||
|
||||
|
@@ -112,7 +112,6 @@ public abstract class AbstractSolrFacetConfigAdminWebScript extends DeclarativeW
|
||||
final int minFilterValueLength = json.getInt(PARAM_MIN_FILTER_VALUE_LENGTH);
|
||||
final String sortBy = json.getString(PARAM_SORT_BY);
|
||||
final String scope = json.getString(PARAM_SCOPE);
|
||||
final int index = getValue(Integer.class, json.opt(PARAM_INDEX), facetService.getNextIndex());
|
||||
final boolean isEnabled = getValue(Boolean.class, json.opt(PARAM_IS_ENABLED), true);
|
||||
JSONArray scopedSitesJsonArray = json.getJSONArray(PARAM_SCOPED_SITES);
|
||||
Set<String> scopedSites = null;
|
||||
@@ -136,7 +135,6 @@ public abstract class AbstractSolrFacetConfigAdminWebScript extends DeclarativeW
|
||||
.minFilterValueLength(minFilterValueLength)
|
||||
.sortBy(sortBy)
|
||||
.scope(scope)
|
||||
.index(index)
|
||||
.isEnabled(isEnabled)
|
||||
.scopedSites(scopedSites).build();
|
||||
return fp;
|
||||
|
Reference in New Issue
Block a user