File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Customer/Block/Adminhtml/Edit/Tab
Sales/Block/Adminhtml/Order Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ protected function _prepareColumns()
160
160
*/
161
161
public function getRowUrl ($ row )
162
162
{
163
- return $ this ->getUrl ('sales/order/view ' , ['order_id ' => $ row ->getId ()]);
163
+ return $ this ->getUrl ('sales/order/view ' , ['order_id ' => $ row ->getId (), ' customer_id ' => $ this -> getRequest ()-> getParam ( ' id ' ) ]);
164
164
}
165
165
166
166
/**
Original file line number Diff line number Diff line change @@ -449,6 +449,9 @@ protected function _isAllowedAction($resourceId)
449
449
*/
450
450
public function getBackUrl ()
451
451
{
452
+ if ($ this ->getRequest ()->getParam ('customer_id ' )) {
453
+ return $ this ->getUrl ('customer/index/edit ' , ['id ' => $ this ->getRequest ()->getParam ('customer_id ' )]);
454
+ }
452
455
if ($ this ->getOrder () && $ this ->getOrder ()->getBackUrl ()) {
453
456
return $ this ->getOrder ()->getBackUrl ();
454
457
}
You can’t perform that action at this time.
0 commit comments