From f3c4d151637dbe0ee5b4382965d5e0ba79f129cf Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Tue, 5 Aug 2014 09:17:38 +0200 Subject: [PATCH] =?UTF-8?q?Add=20position=20management=20with=20categories?= =?UTF-8?q?=20for=20imports=20and=20exports=20=09modifi=C3=A9:=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20core/lib/Thelia/Model/Export.php=20=09modifi?= =?UTF-8?q?=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia/Model/Import.?= =?UTF-8?q?php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Thelia/Model/Export.php | 6 ++++++ core/lib/Thelia/Model/Import.php | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/core/lib/Thelia/Model/Export.php b/core/lib/Thelia/Model/Export.php index fdd9e578b..c9c21bdc0 100644 --- a/core/lib/Thelia/Model/Export.php +++ b/core/lib/Thelia/Model/Export.php @@ -91,4 +91,10 @@ class Export extends BaseExport return true; } + + + public function addCriteriaToPositionQuery($query) + { + $query->filterByExportCategoryId($this->getExportCategoryId()); + } } diff --git a/core/lib/Thelia/Model/Import.php b/core/lib/Thelia/Model/Import.php index 0c6086e13..dc9faf871 100644 --- a/core/lib/Thelia/Model/Import.php +++ b/core/lib/Thelia/Model/Import.php @@ -68,4 +68,9 @@ class Import extends BaseImport return true; } + + public function addCriteriaToPositionQuery($query) + { + $query->filterByImportCategoryId($this->getImportCategoryId()); + } }