Commit 1949c6ed authored by Kulya's avatar Kulya 😊

Upd alvbx add sect5

parent 2fe7e347
......@@ -485,13 +485,12 @@ class AloVoiceRest
if(!empty($conf["bx_catalog_id"])){
$addParams = [
"iblockId" => $conf["bx_catalog_id"],
"name" => self::translit($name),
// "code": 'news'
"name" => $name,
"code": self::translit($name)
];
if(!empty($parent_id) && is_numeric($parent_id)){
$addParams["iblockSectionId"] = $parent_id;
}
var_dump($addParams);
$res = BxRest::call("catalog.section.add",["fields"=>$addParams]);
if(!empty($res["result"])){
$result = $res["result"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment