Skip to content

Commit 5af4705

Browse files
ENGCOM-6563: [CurrencySymbol] Fixing the redirect after saving the currency symbols #26311
- Merge Pull Request #26311 from eduard13/magento2:currencysymbol-redirect - Merged commits: 1. f7d8602
2 parents 15c881e + f7d8602 commit 5af4705

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/CurrencySymbol
    • Controller/Adminhtml/System/Currencysymbol
    • Test/Unit/Controller/Adminhtml/System/Currencysymbol

2 files changed

+2
-2
lines changed

app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currencysymbol/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ public function execute()
6767
$this->messageManager->addErrorMessage($e->getMessage());
6868
}
6969

70-
return $resultRedirect->setPath('*');
70+
return $resultRedirect->setPath('adminhtml/*/');
7171
}
7272
}

app/code/Magento/CurrencySymbol/Test/Unit/Controller/Adminhtml/System/Currencysymbol/SaveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testExecute()
132132
->with(__('You applied the custom currency symbols.'));
133133

134134
$redirect = $this->createMock(Redirect::class);
135-
$redirect->expects($this->once())->method('setPath')->with('*')->willReturnSelf();
135+
$redirect->expects($this->once())->method('setPath')->with('adminhtml/*/')->willReturnSelf();
136136
$this->resultRedirectFactory->method('create')->willReturn($redirect);
137137

138138
$this->assertEquals($redirect, $this->action->execute());

0 commit comments

Comments
 (0)