Skip to content

Commit

Permalink
Fix ProductStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Sep 27, 2017
1 parent 8e62adf commit e4bd25a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eccube/Controller/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Eccube\Application;
use Eccube\Entity\BaseInfo;
use Eccube\Common\Constant;
use Eccube\Entity\Master\Disp;
use Eccube\Entity\Master\ProductStatus;
use Eccube\Entity\Product;
use Eccube\Entity\ProductClass;
use Eccube\Event\EccubeEvents;
Expand Down Expand Up @@ -316,7 +316,7 @@ public function detail(Application $app, Request $request, Product $Product)
}
}
// 公開ステータスでない商品は表示しない.
if ($Product->getStatus()->getId() !== Disp::DISPLAY_SHOW) {
if ($Product->getStatus()->getId() !== ProductStatus::DISPLAY_SHOW) {
throw new NotFoundHttpException();
}
}
Expand Down

0 comments on commit e4bd25a

Please sign in to comment.