File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/internal Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -148,4 +148,6 @@ private FormConstants() {
148
148
149
149
/** Form definition type indicating submission view */
150
150
public static final String FORM_DEFINITION_SUBMISSION = "submission" ;
151
+
152
+ public static final String PRINT_CHANNEL_MARKER = "print" ;
151
153
}
Original file line number Diff line number Diff line change 58
58
public class FragmentImpl extends PanelImpl implements Fragment {
59
59
60
60
public static final String CUSTOM_FRAGMENT_PROPERTY_WRAPPER = "fd:fragment" ;
61
+ private static final String PRINT_CHANNEL_PATH = "/" + JcrConstants .JCR_CONTENT + "/" + "print" ;
61
62
62
63
@ OSGiService
63
64
private SlingModelFilter slingModelFilter ;
@@ -91,8 +92,8 @@ private String getFragmentPathBasedOnChannel(String fragmentPath) {
91
92
String fragmentPathOfChannel = fragmentPath ;
92
93
while (formContainerResource != null ) {
93
94
String resourceType = formContainerResource .getValueMap ().get ("sling:resourceType" , String .class );
94
- if (resourceType != null && resourceType .contains ("print" )) {
95
- fragmentPathOfChannel = fragmentPath + "/" + JcrConstants . JCR_CONTENT + "/" + "print" ;
95
+ if (resourceType != null && resourceType .contains (FormConstants . PRINT_CHANNEL_MARKER )) {
96
+ fragmentPathOfChannel = fragmentPath + PRINT_CHANNEL_PATH ;
96
97
break ;
97
98
}
98
99
formContainerResource = formContainerResource .getParent ();
You can’t perform that action at this time.
0 commit comments