Changeset 19935


Ignore:
Timestamp:
2011/01/17 02:56:35 (10 years ago)
Author:
nanasess
bzr:base-revision:
nanasess@fsm.ne.jp-20110116173352-gpc9zo8bwrcezo8a
bzr:committer:
Kentaro Ohkouchi <nanasess@fsm.ne.jp>
bzr:file-ids:

data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php 15594@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Forder%2FLC_Page_Admin_Order_Edit.php
bzr:mapping-version:
v4
bzr:merge:

nanasess@fsm.ne.jp-20110116175556-2sn9rb235cawul7y
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
nanasess@fsm.ne.jp-20110116175630-xi5x0toapbze9mjj
bzr:revno:
2664
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php nanasess@fsm.ne.jp-20110116175556-2sn9rb235cawul7y
bzr:timestamp:
2011-01-17 02:56:30.233999968 +0900
bzr:user-agent:
bzr2.2.2+bzr-svn1.0.4
svn:original-date:
2011-01-16T17:56:30.234000Z
Message:

冗長なコードを削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r19934 r19935  
    412412        foreach ($arrShipmentItem as $shippingId => $items) { 
    413413 
    414             $this->arrForm['shipping_product_quantity' . '_' . $shippingId] = count($items); 
    415             $this->objFormParam->setValue('shipping_product_quantity' . '_' . $shippingId, 
    416                                           $this->arrForm['shipping_product_quantity' . '_' . $shippingId]); 
     414            $this->objFormParam->setValue('shipping_product_quantity' . '_' . $shippingId, count($items)); 
    417415 
    418416            $this->arrShippingIds[] = $shippingId; 
     
    421419            foreach ($items as $productClassId => $item) { 
    422420                foreach ($item as $itemKey => $itemVal) { 
    423                     $this->arrForm[$itemKey . '_' . $shippingId . '_' . $productClassId] = $itemVal; 
    424421                    $this->objFormParam->setValue($itemKey . '_' . $shippingId . '_' . $productClassId, $itemVal); 
    425422                } 
     
    450447            $this->lfInitShippingParam($this->arrShipping); 
    451448 
    452             $this->arrForm['shipping_quantity'] = count($this->arrShipping); 
    453             $this->objFormParam->setValue('shipping_quantity', $this->arrForm['shipping_quantity']); 
     449            $this->objFormParam->setValue('shipping_quantity', count($this->arrShipping)); 
    454450 
    455451            // 配送情報の処理 
     
    463459                    $ts = strtotime($shipping["shipping_date"]); 
    464460                    $this->objFormParam->setValue('shipping_date_year_' . $shipping['shipping_id'], date("Y", $ts)); 
    465                     $this->arrForm['shipping_date_year_' . $shipping['shipping_id']] = date("Y", $ts); 
    466461                    $this->objFormParam->setValue('shipping_date_month_' . $shipping['shipping_id'], date("n", $ts)); 
    467                     $this->arrForm['shipping_date_month_' . $shipping['shipping_id']] = date("n", $ts); 
    468462                    $this->objFormParam->setValue('shipping_date_day_' . $shipping['shipping_id'], date("j", $ts)); 
    469                     $this->arrForm['shipping_date_day_' . $shipping['shipping_id']] = date("j", $ts); 
    470463                } 
    471464 
     
    473466                foreach ($shipping as $shippingKey => $shippingVal) { 
    474467 
    475                     $this->arrForm[$shippingKey . '_' . $shipping['shipping_id']] = $shippingVal; 
    476468                    $this->objFormParam->setValue($shippingKey . '_' . $shipping['shipping_id'], $shippingVal); 
    477469 
    478                     $this->arrForm['shipping_product_quantity' . '_' . $shipping['shipping_id']] = count($shipping['shipment_item']); 
    479                     $this->objFormParam->setValue('shipping_product_quantity' . '_' . $shipping['shipping_id'], 
    480                                                   $this->arrForm['shipping_product_quantity' . '_' . $shipping['shipping_id']]); 
     470                    $this->objFormParam->setValue('shipping_product_quantity' . '_' . $shipping['shipping_id'], count($shipping['shipment_item'])); 
    481471 
    482472                    // 配送商品の処理 
    483473                    foreach ($shipping['shipment_item'] as $productClassId => $item) { 
    484474                        foreach ($item as $itemKey => $itemVal) { 
    485                             $this->arrForm[$itemKey . '_' . $shipping['shipping_id'] . '_' . $productClassId] = $itemVal; 
    486475                            $this->objFormParam->setValue($itemKey . '_' . $shipping['shipping_id'] . '_' . $productClassId, $itemVal); 
    487476                        } 
Note: See TracChangeset for help on using the changeset viewer.