Changeset 22305


Ignore:
Timestamp:
2013/01/22 19:39:30 (11 years ago)
Author:
undertree
Message:

#1882 レイアウト設定での全ページのチェック後の処理がおかしい

File:
1 edited

Legend:

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

    r22206 r22305  
    168168            $this->setBlocPathTo($device_type_id, $arrBlocs); 
    169169        } 
     170         
     171        //全ページ設定と各ページのブロックの重複を削除 
     172        foreach ($arrBlocs as $index => $arrBloc) { 
     173            if($arrBloc['anywhere'] == 1){ 
     174                $arrUniqBlocIds[] = $arrBloc['bloc_id']; 
     175            } 
     176        } 
     177        foreach ($arrBlocs as $bloc_index => $arrBlocData) { 
     178            if(in_array($arrBlocData['bloc_id'], $arrUniqBlocIds) && $arrBlocData['anywhere'] == 0){ 
     179                unset($arrBlocs[$bloc_index]); 
     180            } 
     181        } 
    170182        return $arrBlocs; 
    171183    } 
Note: See TracChangeset for help on using the changeset viewer.