From 9e991d9cf3335cbf49b739ca6c668411f6cb1f06 Mon Sep 17 00:00:00 2001 From: Jagadedes Date: Thu, 30 Oct 2014 14:17:38 +0530 Subject: [PATCH] #29750 percentage round to 100 if getting bigger --- CRM/Wci/BAO/ProgressBar.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Wci/BAO/ProgressBar.php b/CRM/Wci/BAO/ProgressBar.php index 92654f4..ab2aa71 100644 --- a/CRM/Wci/BAO/ProgressBar.php +++ b/CRM/Wci/BAO/ProgressBar.php @@ -194,7 +194,9 @@ class CRM_Wci_BAO_ProgressBar extends CRM_Wci_DAO_ProgressBar { } } (0 == $ga) ? $perc = 0: $perc = (($sa + $bp) / $ga ) * 100; - + if (100 < $perc){ + $perc = 100; + } return $perc; } } -- 2.25.1