mirror of
https://github.com/Karaka-Management/oms-HumanResourceTimeRecording.git
synced 2026-01-11 11:58:47 +00:00
make fixes for new datamapper
This commit is contained in:
parent
10384326b5
commit
d1b2976149
|
|
@ -225,7 +225,7 @@ final class ApiController extends Controller
|
|||
$account = (int) ($request->getData('account') ?? $request->getHeader()->getAccount());
|
||||
|
||||
/** @var Session $session */
|
||||
$session = SessionMapper::get((int) $request->getData('session'), RelationType::ALL, null, 6);
|
||||
$session = SessionMapper::get((int) $request->getData('session'), RelationType::ALL, 6);
|
||||
|
||||
// cannot create session element for none existing session
|
||||
if ($session === null || $session instanceof NullSession) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user