* [bug#58994,done,1.5h] show tips if no product/execution in doc block.

This commit is contained in:
zhouxin
2025-01-13 14:47:10 +08:00
committed by 宋辰轩
parent 534687d6b1
commit ce3311e80d
10 changed files with 54 additions and 8 deletions
+2 -1
View File
@@ -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. */