* [task#134149,doing,2h] add testcase::exportFreeMind,

This commit is contained in:
liumengyi
2024-12-30 09:51:11 +08:00
committed by 刘刚
parent 659b7b5835
commit dc3b20e2a4
13 changed files with 116 additions and 89 deletions
+7
View File
@@ -40,6 +40,7 @@ $canBrowseGroupCase = hasPriv('testcase', 'groupcase');
$canAutomation = !$isExecutionApp && $canModify && hasPriv('testcase', 'automation') && !empty($productID) && $rawMethod != 'browseunits';
$canExport = !$isExecutionApp && hasPriv('testcase', 'export');
$canExportTemplate = !$isExecutionApp && hasPriv('testcase', 'exportTemplate');
$canExportFreeMind = !$isExecutionApp && hasPriv('testcase', 'exportFreeMind');
$canExportXmind = !$isExecutionApp && hasPriv('testcase', 'exportXmind');
$canImport = !$isExecutionApp && $canModify && hasPriv('testcase', 'import');
$canImportFromLib = !$isExecutionApp && $canModify && hasPriv('testcase', 'importFromLib');
@@ -210,6 +211,12 @@ if(!empty($productID))
$exportItems[] = array('text' => $lang->testcase->xmindExport, 'url' => $link, 'data-toggle' => 'modal', 'data-app' => $app->tab);
}
if($canExportFreeMind)
{
$link = $this->createLink('testcase', 'exportFreeMind', "productID=$productID&moduleID=$moduleID&branch=$branch");
$exportItems[] = array('text' => $lang->testcase->exportFreeMind, 'url' => $link, 'data-toggle' => 'modal', 'data-app' => $app->tab);
}
if($canModify)
{
if($canImport)