diff --git a/extension/lite/doc/ext/view/objectlibs.lite.html.hook.php b/extension/lite/doc/ext/view/objectlibs.lite.html.hook.php index 1ac68e29da..6ebc48b5f7 100644 --- a/extension/lite/doc/ext/view/objectlibs.lite.html.hook.php +++ b/extension/lite/doc/ext/view/objectlibs.lite.html.hook.php @@ -10,7 +10,7 @@ $('#pageNav .btn-group #dropMenu .table-col .list-group a[href*="showFiles"]').r -deleted and $doc->version > 1 and common::hasPriv('doc', 'diff')):?> +deleted and $doc->version > 1 and common::hasPriv('doc', 'diff') and $config->edition != 'open'):?> $('#mainMenu .btn-toolbar > a[href*="bug"], a[href*="testtask"], a[href*="testcase"], a[href*="issue"], a[href*="risk"], a[href*="requirement"]').remove(); -config->edition != 'open'):?> -$('#mainMenu .btn-toolbar > a:first').attr('href', createLink('user', 'todocalendar', 'userID=id?>')); +config->edition != 'open' and common::hasPriv('user', 'todocalendar')):?> +$('#mainMenu .btn-toolbar > a:first[href*="todo"]').attr('href', createLink('user', 'todocalendar', 'userID=id?>')); diff --git a/module/doc/model.php b/module/doc/model.php index f9031c7f1b..ca179ac701 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -516,12 +516,15 @@ class docModel extends model /* When file change then version add one. */ $files = $this->loadModel('file')->getByObject('doc', $docID); $docFiles = array(); - foreach($files as $file) + if($docContent) { - $pathName = $this->file->getRealPathName($file->pathname); - $file->webPath = $this->file->webPath . $pathName; - $file->realPath = $this->file->savePath . $pathName; - if(strpos(",{$docContent->files},", ",{$file->id},") !== false) $docFiles[$file->id] = $file; + foreach($files as $file) + { + $pathName = $this->file->getRealPathName($file->pathname); + $file->webPath = $this->file->webPath . $pathName; + $file->realPath = $this->file->savePath . $pathName; + if(strpos(",{$docContent->files},", ",{$file->id},") !== false) $docFiles[$file->id] = $file; + } } /* Check file change. */ diff --git a/module/execution/view/kanban.html.php b/module/execution/view/kanban.html.php index 99873cc289..0cdc984525 100644 --- a/module/execution/view/kanban.html.php +++ b/module/execution/view/kanban.html.php @@ -171,7 +171,7 @@ js::set('hasTaskButton', $hasTaskButton); ' . html::a(helper::createLink('bug', 'batchCreate', "productID=$productID&branch=$branchID&executionID=$execution->id", '', true), $lang->bug->batchCreate, '', "class='iframe'") . '';?> ';?> ' . html::a(helper::createLink('task', 'create', "execution=$execution->id", '', true), $lang->task->create, '', "class='iframe'") . '';?> - ' . html::a(helper::createLink('execution', 'importBug', "executionID=$execution->id", '', true), $lang->execution->importBug, '', "class='ifram'") . '';?> + ' . html::a(helper::createLink('execution', 'importBug', "executionID=$execution->id", '', true), $lang->execution->importBug, '', "class='iframe' data-width=80%") . '';?> ' . html::a(helper::createLink('task', 'batchCreate', "execution=$execution->id", '', true), $lang->execution->batchCreateTask, '', "class='iframe'") . '';?> diff --git a/module/file/view/export.html.php b/module/file/view/export.html.php index db6fd17222..927fb10abc 100644 --- a/module/file/view/export.html.php +++ b/module/file/view/export.html.php @@ -10,8 +10,8 @@ * @link http://www.zentao.net */ ?> - - +getModuleRoot() . 'common/view/header.lite.html.php';?> +getModuleRoot() . 'common/view/chosen.html.php';?> app->loadLang('file');?>