Commit dd2eba83 authored by COTONNEC's avatar COTONNEC
Browse files

[fix] Add fake analytic Reference when not Production and enableAnalyticReferences = false

parent 3adcab48
......@@ -101,8 +101,18 @@ public class ReferentialExternalDaoImpl implements ReferentialExternalDao {
String sortAttribute,
SortDirection sortDirection) {
if (!enableAnalyticReferences) throw new UnsupportedOperationException("Analytic references not supported");
if (!enableAnalyticReferences && config.isProduction()){
throw new UnsupportedOperationException("Analytic references not supported");
}
else if (!config.isProduction()){
ArrayList<ReferentialVO> referentialVOS = new ArrayList<ReferentialVO>();
ReferentialVO ref = new ReferentialVO();
ref.setLabel("UNK");
ref.setName("Unknown");
ref.setId(0);
referentialVOS.add(ref);
return referentialVOS;
}
loadAnalyticReferences();
// Prepare search pattern
......
This diff is collapsed.
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