From d3b4f05f70f7993aa60bc317852251fe15510d4c Mon Sep 17 00:00:00 2001 From: wumo Date: Tue, 3 Apr 2018 15:30:02 +0800 Subject: [PATCH] * Hide the entry to manage product lines when exists product lines --- module/product/view/create.html.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/module/product/view/create.html.php b/module/product/view/create.html.php index a4af8cc391..c4bb8c959c 100644 --- a/module/product/view/create.html.php +++ b/module/product/view/create.html.php @@ -36,11 +36,14 @@
"; - echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line"), $lang->tree->manageLine, '_blank'); - echo '  '; - echo html::a("javascript:loadProductLines({$rootID})", $lang->refresh); - echo ''; + if(count($lines) == 1) + { + echo ""; + echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line"), $lang->tree->manageLine, '_blank'); + echo '  '; + echo html::a("javascript:loadProductLines({$rootID})", $lang->refresh, "class='refresh'"); + echo ''; + } ?>