* Fix problems in code review.

This commit is contained in:
tianshujie
2022-01-05 11:02:34 +08:00
parent 3125190938
commit ac03f67bdb
5 changed files with 87 additions and 78 deletions
+2 -2
View File
@@ -280,9 +280,9 @@ class productplan extends control
foreach($branches as $id => $name)
{
$plans = isset($planGroup[$product->id][$id]) ? array_filter($planGroup[$product->id][$id]) : array();
$plans = isset($planGroup[$product->id][$id]) ? array_filter($planGroup[$product->id][$id]) : array();
$branchPairs[$id] = $name . ' ' . count($plans);
$planCount += count($plans);
$planCount += count($plans);
}
$this->view->branches = array('all' => $this->lang->productplan->allAB . ' ' . $planCount) + $branchPairs;