From c0cabe31e222950fa544ec24680ebe1bcfbf5808 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Wed, 15 May 2013 11:55:38 +0200 Subject: [PATCH] bug #1976: When a quota is edited, sunstone fills empty inputs with 0 as the default value, instead of -1 (cherry picked from commit 45af9a3c5534068ed7fd990487e7e9b2284ca421) --- src/sunstone/public/js/sunstone-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index 5167c4913f..697c2b42c7 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -1483,7 +1483,7 @@ function setupQuotasDialog(dialog){ notifyError(tr("Please select an element")); return false; }; - if (!value) value = 0; + if (!value) value = -1; json[name] = value; };