* Fix bug #39799, close modal if it's in modal box.

This commit is contained in:
liumengyi
2023-11-03 09:14:09 +08:00
parent 31e52b0cd8
commit e75ea7dc7d
+1 -1
View File
@@ -2181,7 +2181,7 @@ class testcaseZen extends testcase
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $message, 'id' => $caseID));
/* If link from no head then reload. */
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $message, 'closeModal' => true));
if(isonlybody() || helper::isAjaxRequest('modal')) return $this->send(array('result' => 'success', 'message' => $message, 'closeModal' => true));
/* 判断是否当前一级菜单不是 QA,并且 caseList session 存在,并且 caseList 不是动态页面。 */
/* Use this session link, when the tab is not QA, a session of the case list exists, and the session is not from the Dynamic page. */