Ignore:
Timestamp:
2007/09/12 12:59:25 (17 years ago)
Author:
nanasess
Message:

ページ削除処理の修正

Location:
branches/feature-module-update/data/class
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_PageLayout.php

    r15683 r15686  
    193193 
    194194        // page_id が空でない場合にはdeleteを実行 
    195         if ($page_id !== '') { 
     195        if ($page_id != '') { 
     196 
     197            $arrPageData = $this->lfgetPageData(" page_id = ? " , array($page_id)); 
    196198            // SQL生成 
    197199            $sql = " DELETE FROM dtb_pagelayout WHERE page_id = ?"; 
  • branches/feature-module-update/data/class/pages/admin/design/LC_Page_Admin_Design.php

    r15680 r15686  
    5151        if (isset($_GET['page_id'])) { 
    5252            $page_id = $_GET['page_id']; 
    53         }else if ($_POST['page_id']){ 
     53        }else if (isset($_POST['page_id'])){ 
    5454            $page_id = $_POST['page_id']; 
    5555        }else{ 
     
    193193        if ($_POST['mode'] == 'delete' and  !$objLayout->lfCheckBaseData($page_id)) { 
    194194            $objLayout->lfDelPageData($page_id); 
     195            $this->sendRedirect($this->getLocation("./index.php")); 
    195196        } 
    196197 
     
    351352        $tpl_arrBloc[$cnt]['target_id'] = $arrTarget[$val['target_id']]; 
    352353        $tpl_arrBloc[$cnt]['bloc_id'] = $val['bloc_id']; 
    353         $tpl_arrBloc[$cnt]['bloc_row'] = $val['bloc_row']; 
     354        $tpl_arrBloc[$cnt]['bloc_row'] = 
     355            isset($val['bloc_row']) ? $val['bloc_row'] : ""; 
    354356 
    355357        foreach($arrBloc as $bloc_key => $bloc_val){ 
  • branches/feature-module-update/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php

    r15683 r15686  
    213213        $objView->display(MAIN_FRAME); 
    214214    } 
     215 
    215216    /** 
    216217     * デストラクタ. 
Note: See TracChangeset for help on using the changeset viewer.