Commit 5e65a99d authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1329: Hide unavailable dataset views

Task-Url: https://pm.winseda.de/issues/1329
parent 54ef41b3
......@@ -26,7 +26,7 @@ public abstract class FetchParams {
}
String[] excludes = new String[this.fetchSourceExclusions.length];
for (int i=0; i<this.fetchSourceExclusions.length; i++) {
excludes[i] = this.fetchSourceExclusions[i].toString();
excludes[i] = this.fetchSourceExclusions[i].toString() + ".*";
}
return new FetchSourceContext(true, null, excludes);
}
......
......@@ -63,7 +63,7 @@ public class ItemServiceImpl extends BaseResultService implements ItemService {
GetParams params = new GetParams(index, id);
params.setFetchSource(true);
if (includeIntegrations || includeContent) {
if (!includeIntegrations || !includeContent) {
List<RootElementKeys> excludeKeys = new ArrayList<>();
if (!includeIntegrations) {
excludeKeys.add(RootElementKeys.INTEGRATIONS);
......
Supports Markdown
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