bug fixes

This commit is contained in:
Dennis Eichhorn 2024-05-12 00:06:28 +00:00
parent f6f3cf312a
commit 4db0f4d541
5 changed files with 8 additions and 5 deletions

View File

@ -9,5 +9,5 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Thank you for createing this issue. We will check it as soon as possible.'
issue-message: 'Thank you for creating this issue. We will check it as soon as possible.'
pr-message: 'Thank you for your pull request. We will check it as soon as possible.'

View File

@ -23,6 +23,7 @@ return [
'dest' => '\Modules\Knowledgebase\Controller\SearchController:searchGeneral',
'verb' => RouteVerb::ANY,
'active' => true,
'order' => 7,
'permission' => [
'module' => SearchController::NAME,
'type' => PermissionType::READ,

View File

@ -168,9 +168,11 @@ final class ApiController extends Controller
$doc->language = ISO639x1Enum::tryFromValue($request->getDataString('language')) ?? $request->header->l11n->language;
$doc->status = WikiStatus::tryFromValue($request->getDataInt('status')) ?? WikiStatus::INACTIVE;
/*
if ($request->hasData('tags')) {
$doc->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request);
}
*/
return $doc;
}

View File

@ -31,7 +31,7 @@ echo $this->data['nav']->render(); ?>
<div class="row">
<?php foreach ($documents as $doc) : $url = UriFactory::build('{/base}/wiki/doc/view?id=' . $doc->id); ?>
<div class="col-xs-12 plain-grid">
<div class="portlet">
<section class="portlet">
<div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->name); ?></a></div>
<div class="portlet-body">
<article>
@ -49,7 +49,7 @@ echo $this->data['nav']->render(); ?>
<div class="portlet-foot">
<a href="<?= $url; ?>" class="button rf"><?= $this->getHtml('More', '0', '0'); ?></a>
</div>
</div>
</section>
</div>
<?php endforeach; ?>
<?php if (empty($documents)) : ?>

View File

@ -32,7 +32,7 @@ echo $this->data['nav']->render(); ?>
<div class="col-xs-12 col-md-8 col-lg-9">
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<section class="portlet">
<div class="portlet-head">
<?= $this->getHtml('Docs'); ?>
<i class="g-icon download btn end-xs">download</i>
@ -53,7 +53,7 @@ echo $this->data['nav']->render(); ?>
<?php endif; ?>
</table>
</div>
</div>
</section>
</div>
</div>
</div>