Rerun action now will not be shown on cron actions
authorzev <zev@radensolutions.com>
Thu, 15 Oct 2015 15:12:11 +0000 (18:12 +0300)
committerzev <zev@radensolutions.com>
Thu, 15 Oct 2015 15:12:11 +0000 (18:12 +0300)
src/java/netxms-eclipse/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/views/ScheduledTaskView.java
webui/webapp/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/views/ScheduledTaskView.java

index 01d0446..d59b310 100644 (file)
@@ -386,7 +386,9 @@ public class ScheduledTaskView extends ViewPart
       if (selection.size() == 1) 
       {         
          mgr.add(actionEditScheduledTask);
-         mgr.add(actionReRun);
+         ScheduledTask origin = (ScheduledTask)selection.toList().get(0);
+         if(origin.getSchedule().isEmpty())
+            mgr.add(actionReRun);
       }
 
       if (selection.size() > 0)
index 01d0446..d59b310 100644 (file)
@@ -386,7 +386,9 @@ public class ScheduledTaskView extends ViewPart
       if (selection.size() == 1) 
       {         
          mgr.add(actionEditScheduledTask);
-         mgr.add(actionReRun);
+         ScheduledTask origin = (ScheduledTask)selection.toList().get(0);
+         if(origin.getSchedule().isEmpty())
+            mgr.add(actionReRun);
       }
 
       if (selection.size() > 0)