mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-12 16:28:41 +00:00
bug fixes
This commit is contained in:
parent
f6f3cf312a
commit
4db0f4d541
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
|
|
@ -9,5 +9,5 @@ jobs:
|
||||||
- uses: actions/first-interaction@v1
|
- uses: actions/first-interaction@v1
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
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.'
|
pr-message: 'Thank you for your pull request. We will check it as soon as possible.'
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ return [
|
||||||
'dest' => '\Modules\Knowledgebase\Controller\SearchController:searchGeneral',
|
'dest' => '\Modules\Knowledgebase\Controller\SearchController:searchGeneral',
|
||||||
'verb' => RouteVerb::ANY,
|
'verb' => RouteVerb::ANY,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
|
'order' => 7,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => SearchController::NAME,
|
'module' => SearchController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
|
|
|
||||||
|
|
@ -168,9 +168,11 @@ final class ApiController extends Controller
|
||||||
$doc->language = ISO639x1Enum::tryFromValue($request->getDataString('language')) ?? $request->header->l11n->language;
|
$doc->language = ISO639x1Enum::tryFromValue($request->getDataString('language')) ?? $request->header->l11n->language;
|
||||||
$doc->status = WikiStatus::tryFromValue($request->getDataInt('status')) ?? WikiStatus::INACTIVE;
|
$doc->status = WikiStatus::tryFromValue($request->getDataInt('status')) ?? WikiStatus::INACTIVE;
|
||||||
|
|
||||||
|
/*
|
||||||
if ($request->hasData('tags')) {
|
if ($request->hasData('tags')) {
|
||||||
$doc->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request);
|
$doc->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return $doc;
|
return $doc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php foreach ($documents as $doc) : $url = UriFactory::build('{/base}/wiki/doc/view?id=' . $doc->id); ?>
|
<?php foreach ($documents as $doc) : $url = UriFactory::build('{/base}/wiki/doc/view?id=' . $doc->id); ?>
|
||||||
<div class="col-xs-12 plain-grid">
|
<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-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->name); ?></a></div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<article>
|
<article>
|
||||||
|
|
@ -49,7 +49,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
<div class="portlet-foot">
|
<div class="portlet-foot">
|
||||||
<a href="<?= $url; ?>" class="button rf"><?= $this->getHtml('More', '0', '0'); ?></a>
|
<a href="<?= $url; ?>" class="button rf"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($documents)) : ?>
|
<?php if (empty($documents)) : ?>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
<div class="col-xs-12 col-md-8 col-lg-9">
|
<div class="col-xs-12 col-md-8 col-lg-9">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="portlet">
|
<section class="portlet">
|
||||||
<div class="portlet-head">
|
<div class="portlet-head">
|
||||||
<?= $this->getHtml('Docs'); ?>
|
<?= $this->getHtml('Docs'); ?>
|
||||||
<i class="g-icon download btn end-xs">download</i>
|
<i class="g-icon download btn end-xs">download</i>
|
||||||
|
|
@ -53,7 +53,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user