Fix url parameter accessing

modifié:         core/lib/Thelia/Controller/Admin/ExportController.php
	modifié:         core/lib/Thelia/Controller/Admin/ImportController.php
This commit is contained in:
Benjamin Perche
2014-08-04 16:40:35 +02:00
parent 573a21e643
commit 7ba2295799
2 changed files with 20 additions and 12 deletions

View File

@@ -335,9 +335,11 @@ class ExportController extends BaseAdminController
return $response; return $response;
} }
$mode = $this->getRequest()->get("mode"); $query = $this->getRequest()->query;
$id = $this->getRequest()->get("id");
$value = $this->getRequest()->get("value"); $mode = $query->get("mode");
$id = $query->get("id");
$value = $query->get("value");
$this->getExport($id); $this->getExport($id);
@@ -355,9 +357,11 @@ class ExportController extends BaseAdminController
return $response; return $response;
} }
$mode = $this->getRequest()->get("mode"); $query = $this->getRequest()->query;
$id = $this->getRequest()->get("id");
$value = $this->getRequest()->get("value"); $mode = $query->get("mode");
$id = $query->get("id");
$value = $query->get("value");
$this->getCategory($id); $this->getCategory($id);

View File

@@ -433,9 +433,11 @@ class ImportController extends BaseAdminController
return $response; return $response;
} }
$mode = $this->getRequest()->get("mode"); $query = $this->getRequest()->query;
$id = $this->getRequest()->get("id");
$value = $this->getRequest()->get("value"); $mode = $query->get("mode");
$id = $query->get("id");
$value = $query->get("value");
$this->getImport($id); $this->getImport($id);
@@ -450,9 +452,11 @@ class ImportController extends BaseAdminController
return $response; return $response;
} }
$mode = $this->getRequest()->get("mode"); $query = $this->getRequest()->query;
$id = $this->getRequest()->get("id");
$value = $this->getRequest()->get("value"); $mode = $query->get("mode");
$id = $query->get("id");
$value = $query->get("value");
$this->getCategory($id); $this->getCategory($id);