From 83bccea2aa219ee6df4b488c7b0c3009662af2ae Mon Sep 17 00:00:00 2001 From: daitingting Date: Thu, 26 Oct 2023 01:48:38 +0000 Subject: [PATCH] * Format codes. --- module/testcase/ui/header.html.php | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/module/testcase/ui/header.html.php b/module/testcase/ui/header.html.php index b403c5e2b3..9b4bfce3a4 100644 --- a/module/testcase/ui/header.html.php +++ b/module/testcase/ui/header.html.php @@ -25,26 +25,26 @@ $initModule = isset($moduleID) ? (int)$moduleID : 0; $rawMethod = $app->rawMethod; $load = $rawMethod !== 'browse' ? null : 'table'; -$canModify = common::canModify('product', $product); -$canSwitchCaseType = $this->app->tab == 'qa'; -$canDisplaySuite = $this->app->tab == 'qa' && $rawMethod != 'browseunits'; -$canManageModule = hasPriv('tree', 'browse') && !empty($productID); -$canCreateSuite = hasPriv('testsuite', 'create'); -$canBrowseUnits = hasPriv('testtask', 'browseunits'); -$canBrowseZeroCase = hasPriv('testcase', 'zerocase') && $rawMethod != 'browseunits'; -$canBrowseGroupCase = hasPriv('testcase', 'groupcase'); -$canAutomation = hasPriv('testcase', 'automation') && !empty($productID) && $rawMethod != 'browseunits'; -$canExport = hasPriv('testcase', 'export'); -$canExportTemplate = hasPriv('testcase', 'exportTemplate'); -$canExportXmind = hasPriv('testcase', 'exportXmind'); -$canImport = hasPriv('testcase', 'import'); -$canImportFromLib = hasPriv('testcase', 'importFromLib'); -$canImportXmind = hasPriv('testcase', 'importXmind'); -$canCreateCase = hasPriv('testcase', 'create'); -$canBatchCreateCase = hasPriv('testcase', 'batchCreate'); -$canCreateScene = hasPriv('testcase', 'createScene'); +$canModify = common::canModify('product', $product); +$canSwitchCaseType = $this->app->tab == 'qa'; +$canDisplaySuite = $this->app->tab == 'qa' && $rawMethod != 'browseunits'; +$canManageModule = hasPriv('tree', 'browse') && !empty($productID); +$canCreateSuite = hasPriv('testsuite', 'create'); +$canBrowseUnits = hasPriv('testtask', 'browseunits'); +$canBrowseZeroCase = hasPriv('testcase', 'zerocase') && $rawMethod != 'browseunits'; +$canBrowseGroupCase = hasPriv('testcase', 'groupcase'); +$canAutomation = hasPriv('testcase', 'automation') && !empty($productID) && $rawMethod != 'browseunits'; +$canExport = hasPriv('testcase', 'export'); +$canExportTemplate = hasPriv('testcase', 'exportTemplate'); +$canExportXmind = hasPriv('testcase', 'exportXmind'); +$canImport = hasPriv('testcase', 'import'); +$canImportFromLib = hasPriv('testcase', 'importFromLib'); +$canImportXmind = hasPriv('testcase', 'importXmind'); +$canCreateCase = hasPriv('testcase', 'create'); +$canBatchCreateCase = hasPriv('testcase', 'batchCreate'); +$canCreateScene = hasPriv('testcase', 'createScene'); $canImportUnitResult = hasPriv('testtask', 'importUnitResult'); -$canCreate = $canCreateCase || $canBatchCreateCase || $canCreateScene; +$canCreate = $canCreateCase || $canBatchCreateCase || $canCreateScene; $lang->testcase->typeList[''] = $lang->testcase->allType; if(!isset($param)) $param = 0;