Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 26, 2024
1 parent c6cf794 commit 688e270
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/console/controllers/SkeeksSuppliersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ private function _updateTree($apiData = [], CmsTree $cmsTree = null)
if ($isNeedUpdate) {
//TODO:добавить обновление
$cmsTree->name = trim((string)ArrayHelper::getValue($apiData, "name"));
$cmsTree->description_short = trim((string)ArrayHelper::getValue($apiData, "description_short"));
$cmsTree->description_full = trim((string)ArrayHelper::getValue($apiData, "description_full"));
/*$cmsTree->description_short = trim((string)ArrayHelper::getValue($apiData, "description_short"));
$cmsTree->description_full = trim((string)ArrayHelper::getValue($apiData, "description_full"));*/
$cmsTree->is_adult = (int)ArrayHelper::getValue($apiData, "is_adult");
$cmsTree->shop_has_collections = (int)ArrayHelper::getValue($apiData, "has_collections");

Expand All @@ -839,8 +839,8 @@ private function _updateTree($apiData = [], CmsTree $cmsTree = null)
$cmsTree->sx_id = (int)ArrayHelper::getValue($apiData, "id");

$cmsTree->name = trim((string)ArrayHelper::getValue($apiData, "name"));
$cmsTree->description_short = trim((string)ArrayHelper::getValue($apiData, "description_short"));
$cmsTree->description_full = trim((string)ArrayHelper::getValue($apiData, "description_full"));
/*$cmsTree->description_short = trim((string)ArrayHelper::getValue($apiData, "description_short"));
$cmsTree->description_full = trim((string)ArrayHelper::getValue($apiData, "description_full"));*/
$cmsTree->is_adult = (int)ArrayHelper::getValue($apiData, "is_adult");
$cmsTree->shop_has_collections = (int)ArrayHelper::getValue($apiData, "has_collections");

Expand Down

0 comments on commit 688e270

Please sign in to comment.