Skip to content

Commit

Permalink
Merge pull request #325 from OkayCMS/feature/save_product_return_url
Browse files Browse the repository at this point in the history
return to filter page after update product
  • Loading branch information
OkayCMS committed Mar 25, 2024
2 parents 522f9b2 + 94e3dad commit 90f4263
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/Controllers/ProductAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ public function fetch(

// сохранить и выход в список
$buttonRedirectToList = $this->request->post('apply_and_quit', 'integer', 0);
if (($buttonRedirectToList == 1) && !empty($urlRedirectToList = $this->request->getRootUrl() . '/backend/index.php?controller=ProductsAdmin')) {
if ($buttonRedirectToList == 1) {
$urlRedirectToList = htmlspecialchars_decode($this->request->getRootUrl() . urldecode($this->request->get(
'return',
null,
'/backend/index.php?controller=ProductsAdmin'
)));
$this->postRedirectGet->redirect($urlRedirectToList);
}

Expand Down

0 comments on commit 90f4263

Please sign in to comment.