Skip to content

Commit 2fdfdc9

Browse files
committed
ACP2E-1245: Something went wrong" error is displayed when clearing the completed bulk tasks.
1 parent b053b83 commit 2fdfdc9

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/AsynchronousOperations

2 files changed

+2
-2
lines changed

app/code/Magento/AsynchronousOperations/Controller/Adminhtml/Notification/Dismiss.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function execute()
5555
$isAcknowledged = $this->notificationManagement->acknowledgeBulks($bulkUuids);
5656

5757
/** @var \Magento\Framework\Controller\Result\Json $result */
58-
$result = $this->resultFactory->create(ResultFactory::TYPE_JSON);
58+
$result = $this->resultFactory->create(ResultFactory::TYPE_RAW);
5959
if (!$isAcknowledged) {
6060
$result->setHttpResponseCode(400);
6161
}

app/code/Magento/AsynchronousOperations/Test/Unit/Controller/Adminhtml/Notification/DismissTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testExecuteSetsBadRequestResponseStatusIfBulkWasNotAcknowledgedC
9595

9696
$this->resultFactoryMock->expects($this->once())
9797
->method('create')
98-
->with(ResultFactory::TYPE_JSON, [])
98+
->with(ResultFactory::TYPE_RAW, [])
9999
->willReturn($this->jsonResultMock);
100100

101101
$this->notificationManagementMock->expects($this->once())

0 commit comments

Comments
 (0)