mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-10 16:48:41 +00:00
bump
This commit is contained in:
parent
85975abe97
commit
cbf1212b2b
|
|
@ -76,18 +76,20 @@ final class BackendController extends Controller
|
|||
$mapperQuery = TicketMapper::getAll()
|
||||
->with('task')
|
||||
->with('task/createdBy')
|
||||
->with('for')
|
||||
->with('task/for')
|
||||
->with('app')
|
||||
->limit(25);
|
||||
|
||||
if ($request->getData('ptype') === 'p') {
|
||||
$view->data['tickets'] = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '<')->execute();
|
||||
$mapperQuery->where('id', $request->getDataInt('id') ?? 0, '<');
|
||||
} elseif ($request->getData('ptype') === 'n') {
|
||||
$view->data['tickets'] = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '>')->execute();
|
||||
$mapperQuery->where('id', $request->getDataInt('id') ?? 0, '>');
|
||||
} else {
|
||||
$view->data['tickets'] = $mapperQuery->where('id', 0, '>')->execute();
|
||||
$mapperQuery->where('id', 0, '>');
|
||||
}
|
||||
|
||||
$view->data['tickets'] = $mapperQuery->execute();
|
||||
|
||||
$view->data['stats'] = TicketMapper::getStatOverview($request->header->account);
|
||||
|
||||
return $view;
|
||||
|
|
@ -122,7 +124,7 @@ final class BackendController extends Controller
|
|||
->with('ticketElements/taskElement/createdBy')
|
||||
->with('ticketElements/taskElement/media')
|
||||
->with('attributes')
|
||||
->with('for')
|
||||
->with('task/for')
|
||||
->with('app')
|
||||
->where('task/tags/title/language', $request->header->l11n->language);
|
||||
|
||||
|
|
|
|||
|
|
@ -83,11 +83,7 @@ final class TicketMapper extends DataMapperFactory
|
|||
'app' => [
|
||||
'mapper' => SupportAppMapper::class,
|
||||
'external' => 'support_ticket_app',
|
||||
],
|
||||
'for' => [
|
||||
'mapper' => AccountMapper::class,
|
||||
'external' => 'support_ticket_for',
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->title); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('{/base}/profile/view?for=' . $ticket->task->createdBy->id); ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
|
||||
<td><a class="content" href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('{/base}/profile/view?for=' . $ticket->for->id); ?>"><?= $this->printHtml($ticket->for->name1); ?> <?= $this->printHtml($ticket->for->name2); ?></a>
|
||||
<td><a class="content"><?= $this->printHtml($ticket->task->for->name1); ?> <?= $this->printHtml($ticket->task->for->name2); ?>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdAt->format('Y-m-d H:i')); ?></a>
|
||||
<?php endforeach; if ($c == 0) : ?>
|
||||
<tr><td colspan="7" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user