' title="title?>">
end < helper::now()) $suffix = "{$this->lang->productplan->expired}";
+ if($plan->parent == '-1') $suffix .= '';
+ if(!empty($suffix)) echo '';
echo html::a(inlink('view', "id=$plan->id"), $plan->title);
- if($plan->parent == '-1') echo ' ';
+ if(!empty($suffix)) echo $suffix . ' ';
?>
|
session->currentProductType != 'normal'):?>
diff --git a/module/productplan/view/view.html.php b/module/productplan/view/view.html.php
index 0f27bc3296..92010c7ec1 100644
--- a/module/productplan/view/view.html.php
+++ b/module/productplan/view/view.html.php
@@ -53,7 +53,7 @@
$attr = "target='hiddenwin'";
$isOnlyBody = false;
}
- $class = $plan->status == 'wait' ? $class : 'disabled';
+ $class = $plan->status == 'wait' ? (isset($class) ? $class : '' ) : 'disabled';
common::printLink('productplan', 'start', "planID=$plan->id", "