Skip to content

Commit

Permalink
ヘッダ行の出力をセッション操作後に行うように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi committed Dec 13, 2022
1 parent 9f6a2ab commit a471ef5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Eccube/Controller/Admin/Customer/CustomerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,13 @@ public function export(Request $request)
// CSV種別を元に初期化.
$this->csvExportService->initCsvType(CsvType::CSV_TYPE_CUSTOMER);

// ヘッダ行の出力.
$this->csvExportService->exportHeader();

// 会員データ検索用のクエリビルダを取得.
$qb = $this->csvExportService
->getCustomerQueryBuilder($request);

// ヘッダ行の出力.
$this->csvExportService->exportHeader();

// データ行の出力.
$this->csvExportService->setExportQueryBuilder($qb);
$this->csvExportService->exportData(function ($entity, $csvService) use ($request) {
Expand Down
6 changes: 3 additions & 3 deletions src/Eccube/Controller/Admin/Order/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@ protected function exportCsv(Request $request, $csvTypeId, $fileName)
// CSV種別を元に初期化.
$this->csvExportService->initCsvType($csvTypeId);

// ヘッダ行の出力.
$this->csvExportService->exportHeader();

// 受注データ検索用のクエリビルダを取得.
$qb = $this->csvExportService
->getOrderQueryBuilder($request);

// ヘッダ行の出力.
$this->csvExportService->exportHeader();

// データ行の出力.
$this->csvExportService->setExportQueryBuilder($qb);
$this->csvExportService->exportData(function ($entity, $csvService) use ($request) {
Expand Down
6 changes: 3 additions & 3 deletions src/Eccube/Controller/Admin/Product/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -967,13 +967,13 @@ public function export(Request $request)
// CSV種別を元に初期化.
$this->csvExportService->initCsvType(CsvType::CSV_TYPE_PRODUCT);

// ヘッダ行の出力.
$this->csvExportService->exportHeader();

// 商品データ検索用のクエリビルダを取得.
$qb = $this->csvExportService
->getProductQueryBuilder($request);

// ヘッダ行の出力.
$this->csvExportService->exportHeader();

// Get stock status
$isOutOfStock = 0;
$session = $request->getSession();
Expand Down

0 comments on commit a471ef5

Please sign in to comment.