You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/07/25 04:38:41 UTC

[sling-org-apache-sling-app-cms] 02/02: Fixing issue with the parent path for the policy query

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch dklco/form-framework
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 65d808b3018eb9919d5f30e53fb1b22a95958c0f
Author: Dan Klco <dk...@apache.org>
AuthorDate: Thu Jul 25 00:38:29 2019 -0400

    Fixing issue with the parent path for the policy query
---
 .../libs/sling-cms/components/caconfig/scripts/policyOptions.jsp        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/caconfig/scripts/policyOptions.jsp b/ui/src/main/resources/jcr_root/libs/sling-cms/components/caconfig/scripts/policyOptions.jsp
index 9c82aa8..7bf8257 100644
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/caconfig/scripts/policyOptions.jsp
+++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/caconfig/scripts/policyOptions.jsp
@@ -19,7 +19,9 @@
  <%@include file="/libs/sling-cms/global.jsp"%>
 <option value="">Select Policy</option>
 <sling:getParent var="parent" resource="${slingRequest.requestPathInfo.suffixResource}" level="2" />
+${parent.path}
 <c:set var="query" value="SELECT * FROM [nt:unstructured] WHERE [sling:resourceType] = 'sling-cms/components/caconfig/policy' AND ISDESCENDANTNODE([${parent.path}]) ORDER BY [jcr:title]" />
+${query}
 <c:forEach var="policy" items="${sling:findResources(resourceResolver,query,'JCR-SQL2')}">
     <option value="${policy.path}" ${policy.path == editProperties.policyPath ? 'selected' : ''}><sling:encode value="${policy.valueMap['jcr:title']}" mode="HTML" /></option>
 </c:forEach>
\ No newline at end of file