* [bug#58994,done,1.5h] show tips if no product/execution in doc block.
This commit is contained in:
@@ -91,7 +91,8 @@ class testcase extends control
|
||||
{
|
||||
$this->testcaseZen->checkProducts(); // 如果不存在产品,则跳转到产品创建页面。
|
||||
|
||||
if($from == 'doc' && empty($this->products)) $this->locate($this->createLink('product', 'create'));
|
||||
$this->app->loadLang('doc');
|
||||
if($from == 'doc' && empty($this->products)) return $this->send(array('result' => 'fail', 'message' => $this->lang->doc->tips->noProduct));
|
||||
|
||||
/* 把访问的产品ID等状态信息保存到session和cookie中。*/
|
||||
/* Save the product id user last visited to session and cookie. */
|
||||
|
||||
Reference in New Issue
Block a user