Changeset 21977 for branches/version-2_12-dev
- Timestamp:
- 2012/07/27 16:03:53 (12 years ago)
- 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 162 162 AND bloc.device_type_id = pos.device_type_id 163 163 __EOF__; 164 $where = 'bloc.device_type_id = ? AND ( anywhere = 1OR pos.page_id = ?)';164 $where = 'bloc.device_type_id = ? AND ((anywhere = 1 AND pos.page_id != 0) OR pos.page_id = ?)'; 165 165 $objQuery->setOrder('target_id, bloc_row'); 166 166 $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 293 293 $arrParams['bloc_id'] = $id; 294 294 $arrParams['bloc_row'] = $objFormParam->getValue('top_' . $i); 295 295 296 if ($arrParams['page_id'] == 0) { 297 $arrParams['anywhere'] = 0; 298 } 299 296 300 $objQuery->insert('dtb_blocposition', $arrParams); 297 301 }
Note: See TracChangeset
for help on using the changeset viewer.