Bert Leunis pushed to branch feature/ESSENTIALS-1180 at cms-community / 
hippo-essentials


Commits:
c04f651c by Bert Leunis at 2018-03-16T13:39:12+01:00
ESSENTIALS-1180 do not create obsolete icon property

- - - - -


1 changed file:

- 
plugin-sdk/implementation/src/main/java/org/onehippo/cms7/essentials/plugin/sdk/utils/TemplateQueryUtils.java


Changes:

=====================================
plugin-sdk/implementation/src/main/java/org/onehippo/cms7/essentials/plugin/sdk/utils/TemplateQueryUtils.java
=====================================
--- 
a/plugin-sdk/implementation/src/main/java/org/onehippo/cms7/essentials/plugin/sdk/utils/TemplateQueryUtils.java
+++ 
b/plugin-sdk/implementation/src/main/java/org/onehippo/cms7/essentials/plugin/sdk/utils/TemplateQueryUtils.java
@@ -45,7 +45,7 @@ public class TemplateQueryUtils {
     private static Logger log = LoggerFactory.getLogger(GalleryUtils.class);
 
     public static boolean createDocumentTemplateQuery(final JcrService 
jcrService, final String projectNamespace,
-                                               final String documentName) {
+                                                      final String 
documentName) {
         final Session session = jcrService.createSession();
 
         try {
@@ -55,7 +55,6 @@ public class TemplateQueryUtils {
                 return false;
             }
             final Node templateQueryNode = 
JcrUtils.getOrCreateByPath(nodePath, "hippostd:templatequery", session);
-            templateQueryNode.setProperty("hippostd:icon", "adddocument_ico"); 
// TODO: necessary?
             templateQueryNode.setProperty("hippostd:modify", 
MODIFY_VALUES_DOCUMENT);
             templateQueryNode.setProperty("jcr:language", "xpath");
             templateQueryNode.setProperty("jcr:statement", 
String.format(XPATH_QUERY_DOCUMENT, projectNamespace, documentName));
@@ -71,7 +70,8 @@ public class TemplateQueryUtils {
         return false;
     }
 
-    public static boolean createFolderTemplateQuery(final JcrService 
jcrService, final String projectNamespace, final String documentName) {
+    public static boolean createFolderTemplateQuery(final JcrService 
jcrService, final String projectNamespace,
+                                                    final String documentName) 
{
         final Session session = jcrService.createSession();
 
         try {
@@ -98,7 +98,6 @@ public class TemplateQueryUtils {
             throws RepositoryException {
 
         final Node templateQueryNode = JcrUtils.getOrCreateByPath(nodePath, 
"hippostd:templatequery", session);
-        templateQueryNode.setProperty("hippostd:icon", "adddocument_ico"); // 
TODO: necessary?
         templateQueryNode.setProperty("hippostd:modify", MODIFY_VALUES_FOLDER);
         templateQueryNode.setProperty("jcr:language", "xpath");
         templateQueryNode.setProperty("jcr:statement", 
String.format(XPATH_QUERY_FOLDER, documentName));



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials/commit/c04f651cff326bca6b6a826bbc9d76317a8e5291

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials/commit/c04f651cff326bca6b6a826bbc9d76317a8e5291
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to