Commit 1949c6ed authored by Kulya's avatar Kulya 😊

Upd alvbx add sect5

parent 2fe7e347
...@@ -485,13 +485,12 @@ class AloVoiceRest ...@@ -485,13 +485,12 @@ class AloVoiceRest
if(!empty($conf["bx_catalog_id"])){ if(!empty($conf["bx_catalog_id"])){
$addParams = [ $addParams = [
"iblockId" => $conf["bx_catalog_id"], "iblockId" => $conf["bx_catalog_id"],
"name" => self::translit($name), "name" => $name,
// "code": 'news' "code": self::translit($name)
]; ];
if(!empty($parent_id) && is_numeric($parent_id)){ if(!empty($parent_id) && is_numeric($parent_id)){
$addParams["iblockSectionId"] = $parent_id; $addParams["iblockSectionId"] = $parent_id;
} }
var_dump($addParams);
$res = BxRest::call("catalog.section.add",["fields"=>$addParams]); $res = BxRest::call("catalog.section.add",["fields"=>$addParams]);
if(!empty($res["result"])){ if(!empty($res["result"])){
$result = $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