From a3512746cc1cc3c3f45c1d4d98256a2437ffba70 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 28 Jan 2018 00:35:58 +0200 Subject: [PATCH] Merge: Saving Project - Whoops, something went wrong --- 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