mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-11 20:38:42 +00:00
Fix bugs
This commit is contained in:
parent
c03a74b6f3
commit
239b2cb288
|
|
@ -266,6 +266,10 @@ final class ApiController extends Controller
|
|||
$files = \json_decode($files, true);
|
||||
}
|
||||
|
||||
if (!\is_array($files)) {
|
||||
$files = [$files];
|
||||
}
|
||||
|
||||
// TODO: make sure this user has permissions for provided files
|
||||
|
||||
/* Create collection */
|
||||
|
|
|
|||
|
|
@ -16,12 +16,6 @@
|
|||
|
||||
|
||||
$templates = $this->getData('reports');
|
||||
$footerView = new \phpOMS\Views\PaginationView($this->app, $this->request, $this->response);
|
||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
||||
|
||||
$footerView->setPages(\count($templates) / 25);
|
||||
$footerView->setPage(1);
|
||||
$footerView->setResults(\count($templates));
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user