Skip to content

Commit

Permalink
fix(ZMS-2180): fix call count
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Mar 4, 2024
1 parent 58973f4 commit b6e6b71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions zmsadmin/src/Zmsadmin/WorkstationProcessCancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function readResponse(
$noRedirect = $validator->getParameter('noredirect')->isNumber()->getValue();

if ($workstation->process['id']) {
$this->writeCallCount($workstation->process);
\App::$http->readDeleteResult('/workstation/process/')->getEntity();
}
if (1 == $noRedirect) {
Expand All @@ -38,12 +37,4 @@ public function readResponse(
array()
);
}

protected function writeCallCount($process)
{
if (0 < $process->queue['callCount']) {
$process->queue['callCount']--;
}
\App::$http->readPostResult('/process/'. $process->id .'/'. $process->authKey .'/', $process);
}
}
5 changes: 0 additions & 5 deletions zmsadmin/tests/Zmsadmin/WorkstationProcessCancelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ public function testRenderingWithoutRedirect()
'parameters' => ['resolveReferences' => 2],
'response' => $this->readFixture("GET_workstation_with_process.json")
],
[
'function' => 'readPostResult',
'url' => '/process/82252/12a2/',
'response' => $this->readFixture("GET_process_82252_12a2.json")
],
[
'function' => 'readDeleteResult',
'url' => '/workstation/process/',
Expand Down

0 comments on commit b6e6b71

Please sign in to comment.