Ignore:
Timestamp:
2012/07/27 16:03:53 (12 years ago)
Author:
ghana
Message:

#1902
refs #1902
デザイン管理>PC>レイアウト設定 でブロックの全ページにチェックを入れた状態でプレビューをするとチェックが外せなくなる

プレビューの際に dtb_blocposition にデータを入れるさい全ページへ反映するフラグをオフにする
ブロックを表示する際プレビューデータを考慮

Location:
branches/version-2_12-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_PageLayout.php

    r21951 r21977  
    162162                    AND bloc.device_type_id = pos.device_type_id 
    163163__EOF__; 
    164         $where = 'bloc.device_type_id = ? AND (anywhere = 1 OR pos.page_id = ?)'; 
     164        $where = 'bloc.device_type_id = ? AND ((anywhere = 1 AND pos.page_id != 0) OR pos.page_id = ?)'; 
    165165        $objQuery->setOrder('target_id, bloc_row'); 
    166166        $arrBlocs = $objQuery->select('*', $table, $where, array($device_type_id, $page_id)); 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design.php

    r21867 r21977  
    293293            $arrParams['bloc_id'] = $id; 
    294294            $arrParams['bloc_row'] = $objFormParam->getValue('top_' . $i); 
    295  
     295             
     296            if ($arrParams['page_id'] == 0) { 
     297                $arrParams['anywhere'] = 0; 
     298            } 
     299             
    296300            $objQuery->insert('dtb_blocposition', $arrParams); 
    297301        } 
Note: See TracChangeset for help on using the changeset viewer.