]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1966] Fixing error for 0 value of daysOlder entry
authorMartin Stockhammer <martin_s@apache.org>
Fri, 24 Nov 2017 19:25:37 +0000 (20:25 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Fri, 24 Nov 2017 19:25:37 +0000 (20:25 +0100)
UI did not allow to enter value 0 for the daysOlder value.

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js

index abfb373b3dc462a1a91f7a1b5ad86f3011715164..8370645567f4deccb4dcf15a86ed6b88c22defff 100644 (file)
@@ -300,7 +300,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
       rules: {
         daysOlder : {
           digits: true,
-          min: 1
+          min: 0
         },
         retentionCount : {
           digits: true,