Browse Source

Budget fix bug in fetch plan

Piotr Labudda 10 năm trước cách đây
mục cha
commit
00b8e90692
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SE/se-lib/Route/Budget.php

+ 1 - 1
SE/se-lib/Route/Budget.php

@@ -469,7 +469,7 @@ jQuery(document).ready(function() {
 		$res = $db->query($sql);
 		$res = $db->query($sql);
 		while ($r = $db->fetch($res)) {
 		while ($r = $db->fetch($res)) {
 			$plan = array();
 			$plan = array();
-			for ($i = 1; $i < 12; $i++) {
+			for ($i = 1; $i <= 12; $i++) {
 				$plan[$i] = V::get("MONTH_{$i}_VALUE", 0, $r);
 				$plan[$i] = V::get("MONTH_{$i}_VALUE", 0, $r);
 			}
 			}
 			$this->_plan[$r->ID_PROJECT] = $plan;
 			$this->_plan[$r->ID_PROJECT] = $plan;