Ignore:
Timestamp:
2012/05/23 22:28:02 (12 years ago)
Author:
h_yoshimoto
Message:

#1516 複数受注でまとめてメール送信を修正

File:
1 edited

Legend:

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

    r21820 r21852  
    7171     */ 
    7272    function action() { 
    73  
     73        $post = $_POST; 
    7474        //一括送信用の処理 
    75         if (array_key_exists('mail_order_id',$_POST) and $_POST['mode'] == 'mail_select'){ 
    76             $_POST['order_id_array'] = implode(',',$_POST['mail_order_id']); 
    77         } else if(!array_key_exists('order_id_array',$_POST)){ 
    78             $_POST['order_id_array'] = $_POST['order_id']; 
     75        if (array_key_exists('mail_order_id',$post) and $post['mode'] == 'mail_select'){ 
     76            $post['order_id_array'] = implode(',',$post['mail_order_id']); 
     77        } else if(!array_key_exists('order_id_array',$post)){ 
     78            $post['order_id_array'] = $post['order_id']; 
    7979        } 
    8080 
    8181        //一括送信処理変数チェック(ここですべきかは課題) 
    82         if (preg_match("/^[0-9|\,]*$/",$_POST['order_id_array'])){ 
    83             $this->order_id_array = $_POST['order_id_array']; 
     82        if (preg_match("/^[0-9|\,]*$/",$post['order_id_array'])){ 
     83            $this->order_id_array = $post['order_id_array']; 
    8484        } else { 
    8585            //エラーで元に戻す 
     
    8787            SC_Response_Ex::actionExit(); 
    8888        } 
    89  
     89         
    9090        //メール本文の確認例は初めの1受注とする 
    91         if ($this->order_id_array){ 
     91        if (!SC_Utils_Ex::isBlank($this->order_id_array)){ 
    9292            $order_id_array = split(',',$this->order_id_array); 
    93             $_POST['order_id'] = intval($order_id_array[0]); 
     93            $post['order_id'] = intval($order_id_array[0]); 
    9494            $this->order_id_count = count($order_id_array); 
    9595        } 
     
    101101 
    102102        // POST値の取得 
    103         $objFormParam->setParam($_POST); 
     103        $objFormParam->setParam($post); 
    104104        $objFormParam->convParam(); 
    105105        $this->tpl_order_id = $objFormParam->getValue('order_id'); 
Note: See TracChangeset for help on using the changeset viewer.