]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5091 Handle difference between creation and modification of condition on workin...
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 9 Apr 2014 12:57:53 +0000 (14:57 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 9 Apr 2014 12:58:00 +0000 (14:58 +0200)
sonar-server/src/main/coffee/common/inputs.coffee

index cbe26df23e890aa976b09a6bfe327b9f3e9b01ee..8f82ad980cf710d50871b69ddfe057b3ffd4790a 100644 (file)
@@ -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))