* Code for task #101329.

This commit is contained in:
wangyidong
2023-08-29 11:20:28 +08:00
parent 52c5b7b463
commit bc662c5a71
5 changed files with 163 additions and 133 deletions
+4 -4
View File
@@ -1720,10 +1720,6 @@ EOF;
global $app, $lang, $config;
/* Add data-app attribute. */
if(strpos($misc, 'data-app') === false) $misc .= ' data-app="' . $app->tab . '"';
if($onlyBody && strpos($misc, 'data-toggle') === false) $misc .= ' data-toggle="modal"';
/* Judge the $method of $module clickable or not, default is clickable. */
$clickable = true;
if(is_bool($extraEnabled))
@@ -1742,6 +1738,10 @@ EOF;
}
}
/* Add data-app attribute. */
if(strpos($misc, 'data-app') === false) $misc .= ' data-app="' . $app->tab . '"';
if($onlyBody && strpos($misc, 'data-toggle') === false && $clickable) $misc .= ' data-toggle="modal"';
/* Set module and method, then create link to it. */
if(strtolower($module) == 'story' and strtolower($method) == 'createcase') ($module = 'testcase') and ($method = 'create');
if(strtolower($module) == 'bug' and strtolower($method) == 'tostory') ($module = 'story') and ($method = 'create');