Changeset 17614


Ignore:
Timestamp:
2008/09/17 17:20:29 (16 years ago)
Author:
nakanishi
Message:

利用中のテンプレートとEC-CUBEデフォルトのテンプレートが削除できないように修正。
#356

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php

    r17370 r17614  
    136136                SC_Utils::sfDispError(''); 
    137137            } 
    138  
     138             
     139            //現在使用中のテンプレートとデフォルトのテンプレートは削除できないようにする 
    139140            $template_code = $objForm->getValue('template_code_temp'); 
    140             if ($template_code == DEFAULT_TEMPLATE_NAME) { 
    141                 $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 
     141            if ($template_code == DEFAULT_TEMPLATE_NAME || $template_code == 'default') { 
     142                $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 
    142143                break; 
    143144            } 
    144  
     145            exit; 
    145146            $this->lfDeleteTemplate($template_code); 
    146147            break; 
Note: See TracChangeset for help on using the changeset viewer.