From 6a6a4a95f29b0a120608b9870300e590459839a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 24 Mar 2016 21:20:20 +0100 Subject: [PATCH] Fix duration parsing in inline-edit --- frontend/app/ui_components/duration-directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/ui_components/duration-directive.js b/frontend/app/ui_components/duration-directive.js index 049c5c7620..7d710ad788 100644 --- a/frontend/app/ui_components/duration-directive.js +++ b/frontend/app/ui_components/duration-directive.js @@ -32,7 +32,7 @@ module.exports = function($filter, TimezoneService) { require: 'ngModel', link: function(scope, element, attrs, ngModelController) { ngModelController.$parsers.push(function(value) { - if (value) { + if (!isNaN(value)) { var minutes = Number(moment.duration(value, 'hours').asMinutes().toFixed(2)); return moment.duration(minutes, 'minutes'); }