Skip to content

Commit

Permalink
Merge pull request #75 from it-at-m/feature-1223-allow-same-seat-numbers
Browse files Browse the repository at this point in the history
Feature 1223 allow same seat numbers
  • Loading branch information
manjencic authored Dec 18, 2023
2 parents 7f7426c + d95446f commit 5ed1222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion zmsapi/src/Zmsapi/WorkstationUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function readResponse(
$input = Validator::input()->isJson()->assertValid()->getValue();
$entity = new \BO\Zmsentities\Workstation($input);
$entity->testValid();
Helper\User::testWorkstationAssigend($entity, $resolveReferences);
Helper\User::testWorkstationIsOveraged($entity);
if ($entity->getUseraccount()->id != $currentWorkstation->getUseraccount()->id) {
throw new Exception\Workstation\WorkstationAccessFailed();
Expand Down
8 changes: 6 additions & 2 deletions zmsdb/src/Zmsdb/Helper/ArchivedDataIntoStatisticByCron.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ protected function writeProcessInStatisticTable(
$commit = false
) {
$requestList = (new \BO\Zmsdb\Request())->readRequestByArchiveId($process->archiveId);
$requestList = ($requestList->count()) ? $requestList : [new \BO\Zmsentities\Request(['id' => '-1'])];
$processingTime = $requestList->count() === 1 ? $process->bearbeitungszeit : null;
$processingTime = null;
if ($requestList->count()) {
$processingTime = $requestList->count() === 1 ? $process->bearbeitungszeit : null;
} else {
$requestList = [new \BO\Zmsentities\Request(['id' => '-1'])];
}

foreach ($requestList as $request) {
$archived = true; // for verbose
Expand Down

0 comments on commit 5ed1222

Please sign in to comment.