Skip to content

Commit

Permalink
Fix CIBlock Element and Section
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumanai committed Nov 7, 2018
1 parent 3870c97 commit 72cbc60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions snippets/ciblockelement.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
"prefix": "CIBlockElementList",
"body": [
"\\$rsElement = CIBlockElement::GetList(",
"\t$arOrder = array('SORT' => 'ASC'),",
"\t$arFilter = array(",
"\t\\$arOrder = array('SORT' => 'ASC'),",
"\t\\$arFilter = array(",
"\t\t'ACTIVE' => 'Y'",
"\t),",
"\tfalse",
"\tfalse",
"\tfalse,",
"\tfalse,",
"\t\\$arSelectFields = array('ID','NAME','IBLOCK_ID','CODE','PROPERTY_*')",
");",
"while(\\$arElement = \\$rsElement->fetch()) {",
Expand Down
6 changes: 3 additions & 3 deletions snippets/ciblocksection.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"prefix": "CIBlockSectionList",
"body": [
"\\$rsSection = CIBlockSection::GetList(",
"\t$arOrder = array('SORT' => 'ASC'),",
"\t$arFilter = array(",
"\t\\$arOrder = array('SORT' => 'ASC'),",
"\t\\$arFilter = array(",
"\t\t'ACTIVE' => 'Y'",
"\t),",
"\tfalse",
"\tfalse,",
"\t\\$arSelect = array('ID','NAME','IBLOCK_ID','CODE','UF_*'),",
"false",
");",
Expand Down

0 comments on commit 72cbc60

Please sign in to comment.