*Optimize the code.

This commit is contained in:
孙华伟
2022-04-14 17:17:43 +08:00
parent d1db184695
commit cc3d12bf7d
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ $config->file->charset = array('UTF-8' => 'UTF-8', 'GBK' => 'GBK', 'BIG5' => '
$config->file->maxImport = 100;
$config->file->objectType['stepResult'] = 'testcase';
$config->file->objectType['requirement'] = 'story';
$config->file->convertURL['common']['view'] = '1';
$config->file->convertURL['story']['edit'] = '1';
-1
View File
@@ -81,7 +81,6 @@ $sessionString .= session_name() . '=' . session_id();
echo "<li title='{$uploadDate}'>" . html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $fileTitle . " <span class='text-muted'>({$fileSize})</span>", '_blank', "onclick=\"return downloadFile($file->id, '$file->extension', $imageWidth, '$file->title')\"");
$objectType = zget($this->config->file->objectType, $file->objectType);
if($objectType = 'requirement') $objectType = 'story';
if(common::hasPriv($objectType, 'edit', $object))
{
echo "<span class='right-icon'>&nbsp; ";