* adjust the project's tree: remove the the product branch that without project.

This commit is contained in:
chencongzhi520@gmail.com
2013-02-26 02:22:49 +00:00
parent 7f8670d244
commit 46a34634b1

View File

@@ -161,8 +161,11 @@ class projectModel extends model
$projectTree = "<ul class='tree'>";
foreach($productGroup as $productID => $projects)
{
if(!isset($products[$productID]) and $productID != '') continue;
if(!isset($products[$productID]) and $productID != '') continue;
if(!isset($products[$productID]) and !count($projects)) continue;
$productName = isset($products[$productID]) ? $products[$productID] : $this->lang->project->noProduct;
$projectTree .= "<li>$productName<ul>";
foreach($projects as $project)