Ignore:
Timestamp:
2011/02/15 14:42:28 (13 years ago)
Author:
coelacanth
Message:

#964 getMode()メソッドのリファクタリング。入れ子とで使っている場合の修正等

File:
1 edited

Legend:

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

    r20164 r20166  
    9595            $this->tpl_mode = "insert"; 
    9696        } 
    97         //TODO 要リファクタリング(MODE if利用) 
    98         if($this->getMode()!=null) { 
     97 
     98        if(!empty($_POST)) { 
    9999            // 入力値の変換 
    100100            $this->objFormParam->convParam(); 
     
    118118        } else { 
    119119            $arrCol = $this->objFormParam->getKeyList(); // キー名一覧を取得 
    120             $col    = SC_Utils_Ex::sfGetCommaList($arrCol); 
     120            $col    = SC_Utils_Ex::sfGetCommaList($arrCol); 
     121            // DB値の取得 
    121122            $arrRet = $objQuery->select($col, "dtb_baseinfo"); 
    122             // DB値の取得 
    123123            $this->objFormParam->setParam($arrRet[0]); 
    124124        } 
Note: See TracChangeset for help on using the changeset viewer.