From: Jean-Baptiste Lievremont Date: Wed, 9 Apr 2014 12:57:53 +0000 (+0200) Subject: SONAR-5091 Handle difference between creation and modification of condition on workin... X-Git-Tag: 4.3~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1371ede086f94857f70263bfc8ab458d7e7c4e60;p=sonarqube.git SONAR-5091 Handle difference between creation and modification of condition on working duration --- diff --git a/sonar-server/src/main/coffee/common/inputs.coffee b/sonar-server/src/main/coffee/common/inputs.coffee index cbe26df23e8..8f82ad980cf 100644 --- a/sonar-server/src/main/coffee/common/inputs.coffee +++ b/sonar-server/src/main/coffee/common/inputs.coffee @@ -26,7 +26,7 @@ convertWorkDuration = (value) -> restoreWorkDuration = (value) -> - return '0' if value == '0' + return '0' if (value == '0' || value == 0) return value unless /^\d+$/.test value days = Math.floor(value / (8 * 60))