Changeset 16755


Ignore:
Timestamp:
2007/11/08 18:26:49 (16 years ago)
Author:
adachi
Message:

リダイレクトループする不具合の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/contents/LC_Page_Admin_Contents_Inquiry.php

    r16741 r16755  
    104104        if (!isset($_GET['mode'])) $_GET['mode'] = ""; 
    105105 
     106        // アンケートを作成ボタン押下時 
    106107        if ( $_GET['mode'] == 'regist' ){ 
    107108 
     
    116117 
    117118            if ( ! $error  ){ 
    118  
     119                // 新規登録 
    119120                if ( ! is_numeric($_POST['question_id']) ){ 
    120121                    $objQuery = new SC_Query(); 
     
    135136 
    136137                    $this->QUESTION_ID = $question_id; 
    137                     $this->reload(); 
     138                    $this->reload(null, true); 
     139 
     140                // 編集 
    138141                } else { 
    139142                    //編集 
     
    143146                    $this->MESSAGE = "編集が完了しました"; 
    144147                    $this->QUESTION_ID = $_POST['question_id']; 
    145                     $this->reload(); 
     148                    $this->reload(null, true); 
    146149                } 
    147150            } else { 
     
    151154                $this->QUESTION_ID = $_REQUEST['question_id']; 
    152155                $this->ERROR_COLOR = $this->lfGetErrColor($error, ERR_COLOR); 
    153  
    154             } 
     156            } 
     157 
     158        // 削除ボタン押下時 
    155159        } elseif ( ( $_GET['mode'] == 'delete' ) && ( SC_Utils_Ex::sfCheckNumLength($_GET['question_id']) )  ){ 
    156160 
    157161            $sql = "UPDATE dtb_question SET del_flg = 1 WHERE question_id = ?"; 
    158162            $conn->query( $sql, array( $_GET['question_id'] ) ); 
    159             $this->reload(); 
    160  
     163            $this->reload(null, true); 
     164 
     165        // CSVダウンロードボタン押下時 
    161166        } elseif ( ( $_GET['mode'] == 'csv' ) && ( SC_Utils_Ex::sfCheckNumLength($_GET['question_id']) ) ){ 
    162167            require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_CSV_Ex.php"); 
     
    174179            exit; 
    175180 
     181        // 初回表示 or 編集ボタン押下時 
    176182        } else { 
    177183            if (!isset($_GET['question_id'])) $_GET['question_id'] = ""; 
Note: See TracChangeset for help on using the changeset viewer.