已解決 【BUG】批量導出測試用例異常

【BUG】批量導出測試用例異常

禪道開源版11.5

異常日志如下:

11:23:19 ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'a_tc_devops_zentao.TABLE_TESTRUN' doesn't exist<p>The sql is: SELECT t1.* FROM `zt_testresult` AS t1  LEFT JOIN TABLE_TESTRUN AS t2  ON t1.run=t2.id  wHeRe t1.`case` IN ('300230','300229','300228') oRdEr bY `id` desc </p> in lib/base/dao/dao.class.php on line 1394, last called by lib/base/dao/dao.class.php on line 708 through function sqlError. in framework/base/router.class.php on line 2215 when visiting /index.php?m=testcase&f=export&productID=30011&orderBy=id_desc&taskID=0&browseType=all


經查看源代碼,發現module/testcase.control.php 的第1109行,

->leftJoin('TABLE_TESTRUN')->alias('t2')->on('t1.run=t2.id')

多了單引號,應該為

->leftJoin(TABLE_TESTRUN)->alias('t2')->on('t1.run=t2.id')



禪道版本 11.5 源碼包
操作系統 Ubuntu
客戶端瀏覽器 Chrome

提問者: 李超 懸賞: 5 日期: 2019-06-13 11:44:44 答案:1 點擊:242
設置備注
答案列表
2019/06/13
最新官網的包已經修正這個問題了,謝謝反饋。
2019/11/14
謝謝
三肖中特期准黄大仙373745