Advertisement
SpeakeazyYT

Untitled

Aug 10th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $arFilter = array(
  2. 'IBLOCK_ID' => 4,
  3. );
  4.  
  5. $arSelect = array(
  6. 'ID',
  7. 'CODE',
  8. 'IBLOCK_ID',
  9. 'NAME',
  10. 'UF_CHOOSE_RULE'
  11. );
  12.  
  13. $dbSection = CIBlockSection::GetList(array(), $arFilter, false, $arSelect);
  14. while( $arSection = $dbSection-> GetNext() ){
  15. $sections[] = $arSection;
  16. }
  17.  
  18. //print_r($sections);
  19.  
  20. $bs = new CIBlockSection;
  21. foreach ($sections as $k => $sec) {
  22. $bs->Update($sec['ID'], array('UF_CHOOSE_RULE' => '6'));
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement