Shubhendu Tripathi has uploaded a new change for review.

Change subject: webadmin: Corrected a UI validation while volume snapshot 
creation
......................................................................

webadmin: Corrected a UI validation while volume snapshot creation

Change-Id: I8916803b86901e2ecd5b4d8ed208b8822135bf46
Signed-off-by: Shubhendu Tripathi <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/GlusterVolumeSnapshotModel.java
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/07/40007/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/GlusterVolumeSnapshotModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/GlusterVolumeSnapshotModel.java
index 8f5ebf0..367d567 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/GlusterVolumeSnapshotModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/GlusterVolumeSnapshotModel.java
@@ -240,10 +240,11 @@
             }
         }
 
-        if (getEndByOptions().getSelectedItem() == EndDateOptions.HasEndDate
-                && 
getEndDate().getEntity().compareTo(getStartAt().getEntity()) < 0) {
-            
setMessage(ConstantsManager.getInstance().getConstants().endDateBeforeStartDate());
-            validEndDate = false;
+        if (getRecurrence().getSelectedItem() != 
GlusterVolumeSnapshotScheduleRecurrence.UNKNOWN
+                && getEndByOptions().getSelectedItem() == 
EndDateOptions.HasEndDate
+                && 
getEndDate().getEntity().compareTo(getStartAt().getEntity()) <= 0) {
+                
setMessage(ConstantsManager.getInstance().getConstants().endDateBeforeStartDate());
+                validEndDate = false;
         }
 
         return getSnapshotName().getIsValid() && 
getDaysOfTheWeek().getIsValid() && getDaysOfMonth().getIsValid()


-- 
To view, visit https://gerrit.ovirt.org/40007
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8916803b86901e2ecd5b4d8ed208b8822135bf46
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5-gluster
Gerrit-Owner: Shubhendu Tripathi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to