*UPDATE* Apply multiple templates at once fixes #942
authorEriks Jenkevics <eriks@netxms.org>
Fri, 26 Aug 2016 10:25:49 +0000 (13:25 +0300)
committerEriks Jenkevics <eriks@netxms.org>
Fri, 26 Aug 2016 10:25:49 +0000 (13:25 +0300)
src/java/netxms-eclipse/DataCollection/src/org/netxms/ui/eclipse/datacollection/actions/ApplyTemplate.java
webui/webapp/DataCollection/src/org/netxms/ui/eclipse/datacollection/actions/ApplyTemplate.java

index abe426d..5a41fd5 100644 (file)
@@ -107,11 +107,6 @@ public class ApplyTemplate implements IObjectActionDelegate
                                action.setEnabled(true);
                                parentId.add(((AbstractObject)s).getObjectId());
                        }
-                       else
-                       {
-                               action.setEnabled(false);
-                               parentId.add((long)0);
-                       }
                        }
                }
                else
index abe426d..5a41fd5 100644 (file)
@@ -107,11 +107,6 @@ public class ApplyTemplate implements IObjectActionDelegate
                                action.setEnabled(true);
                                parentId.add(((AbstractObject)s).getObjectId());
                        }
-                       else
-                       {
-                               action.setEnabled(false);
-                               parentId.add((long)0);
-                       }
                        }
                }
                else