From ae36964e7d354a0175352af1fb7ee70f1e4b5713 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Fri, 24 Nov 2017 20:29:17 +0100 Subject: [PATCH] [MRM-1966] Fixing error for 0 value of daysOlder entry UI did not allow to enter value 0 for the daysOlder value. --- .../webapp/js/archiva/admin/repository/maven2/repositories.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}); -- 2.39.5