fix bug assigning min=0 to slices by default

This commit is contained in:
Grahame Grieve 2020-07-17 09:27:51 +10:00
parent 847858c131
commit bb8fde3682
1 changed files with 1 additions and 0 deletions

View File

@ -1556,6 +1556,7 @@ public class ProfileUtilities extends TranslatingUtilities {
outcome.setPath(fixedPathDest(contextPathDst, outcome.getPath(), redirector, contextPathSrc));
updateFromBase(outcome, currentBase);
outcome.setSlicing(null);
outcome.setMin(0); // were in a slice, so it's only a mandatory if it's explicitly marked so
if (!outcome.getPath().startsWith(resultPathBase))
throw new DefinitionException(context.formatMessage(I18nConstants.ADDING_WRONG_PATH));
result.getElement().add(outcome);