diff --git a/module/file/config.php b/module/file/config.php index 041edfb731..121f36e3ca 100644 --- a/module/file/config.php +++ b/module/file/config.php @@ -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'; diff --git a/module/file/view/printfiles.html.php b/module/file/view/printfiles.html.php index e0cccad43a..0b0f8d3208 100644 --- a/module/file/view/printfiles.html.php +++ b/module/file/view/printfiles.html.php @@ -81,7 +81,6 @@ $sessionString .= session_name() . '=' . session_id(); echo "
  • " . html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $fileTitle . " ({$fileSize})", '_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 "  ";