mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-10 15:18:40 +00:00
more code fixes
This commit is contained in:
parent
7808452b02
commit
79b4607938
|
|
@ -71,7 +71,7 @@ final class ApiAttributeController extends Controller
|
|||
->with('type')
|
||||
->where('type/id', $type->id)
|
||||
->where('ref', (int) $request->getData('ref'))
|
||||
->execute();
|
||||
->executeCount();
|
||||
|
||||
if ($attr > 0) {
|
||||
$response->header->status = RequestStatusCode::R_409;
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ final class ApiController extends Controller
|
|||
|
||||
$profile = ProfileMapper::count()
|
||||
->where('account', $rel->relation->id)
|
||||
->execute();
|
||||
->executeCount();
|
||||
|
||||
if ($profile < 1) {
|
||||
continue;
|
||||
|
|
@ -267,7 +267,7 @@ final class ApiController extends Controller
|
|||
|
||||
$profile = ProfileMapper::count()
|
||||
->where('account', $account->id)
|
||||
->execute();
|
||||
->executeCount();
|
||||
|
||||
if ($profile < 1) {
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -184,13 +184,13 @@ final class BackendController extends Controller implements DashboardElementInte
|
|||
|
||||
if ($request->getData('ptype') === 'p') {
|
||||
$view->data['tasks'] = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '<')
|
||||
->execute();
|
||||
->executeGetAll();
|
||||
} elseif ($request->getData('ptype') === 'n') {
|
||||
$view->data['tasks'] = $mapperQuery->where('id', $request->getDataInt('id') ?? 0, '>')
|
||||
->execute();
|
||||
->executeGetAll();
|
||||
} else {
|
||||
$view->data['tasks'] = $mapperQuery->where('id', 0, '>')
|
||||
->execute();
|
||||
->executeGetAll();
|
||||
}
|
||||
|
||||
$view->data['task_media'] = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user