Skip to content

Commit 4459cb0

Browse files
author
Aditya Yadav
authored
Update Save.php
This keeps the form data persistent when the an Integration Exception is throw as a case when name of Integration being added is same.
1 parent 90a479f commit 4459cb0

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Integration/Controller/Adminhtml/Integration

1 file changed

+1
-1
lines changed

app/code/Magento/Integration/Controller/Adminhtml/Integration/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function execute()
7474
$this->_redirectOnSaveError();
7575
} catch (IntegrationException $e) {
7676
$this->messageManager->addError($this->escaper->escapeHtml($e->getMessage()));
77-
$this->_getSession()->setIntegrationData($integrationData);
77+
$this->_getSession()->setIntegrationData($this->getRequest()->getPostValue());
7878
$this->_redirectOnSaveError();
7979
} catch (\Magento\Framework\Exception\LocalizedException $e) {
8080
$this->messageManager->addError($this->escaper->escapeHtml($e->getMessage()));

0 commit comments

Comments
 (0)