From f40d0677b3209540e06a4eab6b6f73237b5dec3f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 28 Jan 2018 00:35:16 +0200 Subject: [PATCH] Saving Project - Whoops, something went wrong #1857 --- resources/views/projects/show.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/projects/show.blade.php b/resources/views/projects/show.blade.php index 69a4205d5c39..65fc33182f90 100644 --- a/resources/views/projects/show.blade.php +++ b/resources/views/projects/show.blade.php @@ -89,7 +89,7 @@ {{ trans('texts.duration') }} {{ Utils::formatTime($chartData->duration) }} - @if ($project->budgeted_hours) + @if (floatval($project->budgeted_hours)) [{{ round($chartData->duration / ($project->budgeted_hours * 60 * 60) * 100) }}%] @endif