File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Customer/Block/Adminhtml/Edit/Tab
Sales/Block/Adminhtml/Order Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,10 @@ 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 (
164
+ 'sales/order/view ' ,
165
+ ['order_id ' => $ row ->getId (), 'customer_id ' => $ this ->getRequest ()->getParam ('id ' )]
166
+ );
164
167
}
165
168
166
169
/**
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