Ignore:
Timestamp:
2011/01/28 16:19:40 (12 years ago)
Author:
eccuore
Message:

#642(共通ロジックの機能向上) mode 取得用の関数を利用するように修正(switchリファクタリングは未対応)

File:
1 edited

Legend:

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

    r20032 r20041  
    131131        $this->arrForm = $_POST; 
    132132 
    133         if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    134  
    135         switch($_POST['mode']) { 
     133        switch($this->getMode()) { 
    136134            // 検索画面からの編集 
    137135            case 'pre_edit': 
     
    160158                $this->lfProductPage();     // 商品登録ページ 
    161159 
    162                 if($_POST['mode'] == "copy"){ 
     160                if($this->getMode() == "copy"){ 
    163161                    $this->arrForm["copy_product_id"] = $this->arrForm["product_id"]; 
    164162                    $this->arrForm["product_id"] = ""; 
Note: See TracChangeset for help on using the changeset viewer.