From 23cf723f0e786d9e62345d3fc4c705abcef3bb96 Mon Sep 17 00:00:00 2001 From: David E Jones Date: Thu, 24 Nov 2016 18:00:51 -0800 Subject: [PATCH] Fixed issue with stats for non-placeholder screens --- .../main/groovy/org/moqui/impl/screen/ScreenFacadeImpl.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/main/groovy/org/moqui/impl/screen/ScreenFacadeImpl.groovy b/framework/src/main/groovy/org/moqui/impl/screen/ScreenFacadeImpl.groovy index f76be9b32..2a6f3dea7 100644 --- a/framework/src/main/groovy/org/moqui/impl/screen/ScreenFacadeImpl.groovy +++ b/framework/src/main/groovy/org/moqui/impl/screen/ScreenFacadeImpl.groovy @@ -318,6 +318,7 @@ public class ScreenFacadeImpl implements ScreenFacade { throw new BaseException("Could not find root screen for host: ${host}") } + /** Called from ArtifactStats screen */ List getScreenInfoList(String rootLocation, int levels) { ScreenInfo rootInfo = new ScreenInfo(getScreenDefinition(rootLocation), null, null, 0) List infoList = [] @@ -361,7 +362,8 @@ public class ScreenFacadeImpl implements ScreenFacade { sections = sd.sectionByName.size() transitions = sd.transitionByName.size() for (TransitionItem ti in sd.transitionByName.values()) if (ti.hasActionsOrSingleService()) transitionsWithActions++ - isNonPlaceholder = forms || sections || transitions + isNonPlaceholder = forms > 0 || sections > 0 || transitions > 3 + // if (isNonPlaceholder) logger.info("Screen ${name} forms ${forms} sections ${sections} transitions ${transitions}") // trickle up totals ScreenInfo curParent = parentInfo