From: Martin Stockhammer Date: Fri, 24 Nov 2017 19:29:17 +0000 (+0100) Subject: [MRM-1966] Fixing error for 0 value of daysOlder entry X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ae36964e7d354a0175352af1fb7ee70f1e4b5713;p=archiva.git [MRM-1966] Fixing error for 0 value of daysOlder entry UI did not allow to enter value 0 for the daysOlder value. --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js index b169712cf..37b41d84d 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repositories.js @@ -300,7 +300,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) { rules: { retentionTime : { digits: true, - min: 1 + min: 0 }, retentionCount : { digits: true, @@ -1327,4 +1327,4 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) { return ($.isArray(managedRepository) && managedRepository.length>0) ? managedRepository[0]:new ManagedRepository(); } -}); \ No newline at end of file +});