瀏覽代碼

[Admin] Produits : import prix cassé #1454

feature/souke
Guillaume Bourgeois 1 年之前
父節點
當前提交
89b1ec3595
共有 1 個檔案被更改,包括 3 行新增6 行删除
  1. +3
    -6
      backend/controllers/ProductController.php

+ 3
- 6
backend/controllers/ProductController.php 查看文件

@@ -41,8 +41,7 @@ namespace backend\controllers;
use backend\forms\ProductPriceUploadForm;
use common\helpers\CSV;
use common\helpers\GlobalParam;
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution;
use common\logic\Feature\Feature\Model\Feature;
use common\logic\Feature\Feature\Feature;
use common\logic\PointSale\PointSale\Model\PointSale;
use common\logic\Product\Product\Model\Product;
use common\logic\Product\Product\Model\ProductSearch;
@@ -52,10 +51,8 @@ use common\logic\Product\ProductPrice\Model\ProductPriceSearch;
use common\logic\User\UserProducer\Model\UserProducer;
use Yii;
use yii\filters\AccessControl;
use yii\helpers\BaseFileHelper;
use yii\helpers\Html;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use common\helpers\Upload;
use yii\web\UploadedFile;

@@ -374,7 +371,7 @@ class ProductController extends BackendController
*/
public function actionPriceImport()
{
if($this->getFeatureModule()->getManager()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) {
if($this->getFeatureModule()->getChecker()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) {
return $this->redirectDashboard();
}

@@ -484,7 +481,7 @@ class ProductController extends BackendController
*/
public function actionPriceExport()
{
if($this->getFeatureModule()->getManager()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) {
if($this->getFeatureModule()->getChecker()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) {
return $this->redirectDashboard();
}


Loading…
取消
儲存