Properly generated Fishery and Stock group

This commit is contained in:
Luca Frosini 2022-04-27 13:13:21 +02:00
parent 503a66596b
commit 0458379cb4
1 changed files with 2 additions and 1 deletions

View File

@ -513,7 +513,8 @@ public class CommonServiceUtils {
logger.debug("Domain is " + productType.getOrigName() + " and system type " + record.getSystemType());
// evaluate the custom fields/tags, resources and groups
groups.add(sourceInPath.getOrigName().toLowerCase() + "-" + productType.getOrigName().toLowerCase()); //e.g. grsf-fishery
groups.add(productType.getOrigName().toLowerCase()); //i.e. stock or fishery
boolean skipTags = !sourceInPath.equals(Sources.GRSF); // no tags for the Original records
CommonServiceUtils.getTagsGroupsResourcesExtrasByRecord(tags, skipTags, groups, false, resources, false,
customFields, record, username, sourceInPath);