#29750 percentage round to 100 if getting bigger
authorJagadedes <jagadees.pillai@zyxware.com>
Thu, 30 Oct 2014 08:47:38 +0000 (14:17 +0530)
committerJagadedes <jagadees.pillai@zyxware.com>
Thu, 30 Oct 2014 08:47:38 +0000 (14:17 +0530)
CRM/Wci/BAO/ProgressBar.php

index 92654f43062300d80b92cd608cb4b231d0eca8d8..ab2aa716ad98597cd2f407d1d5cc21e5e4a3603c 100644 (file)
@@ -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;
   }
 }