1
0
Fork 0
mirror of synced 2025-04-05 06:43:32 +03:00

Удаление неиспользуемого кода

This commit is contained in:
Ivan Chaplygin 2024-12-04 16:31:17 +03:00
parent 6ef339f2c3
commit 4b7673ed96

View file

@ -152,7 +152,6 @@ class SettingsService
$this->linkNewProfile();
$this->deleteEmptyProfileCatalogs();
$this->deleteUnusedOptions();
$this->customPropList = $this->getNewProps();
$this->defaultPropList = $this->getIblockPropsPreset();
@ -188,31 +187,6 @@ class SettingsService
];
}
private function deleteUnusedOptions()
{
//здесь удаление из b_options удаленных профилей
/* if (CModule::IncludeModule("sale")) {
$profiles = CSaleExport::GetList(['ID' => 'DESC'], ['NAME' => 'retailcrm']);
$ids = [];
while ($profile = $profiles->Fetch()) {
$ids[(int) $profile['ID']] = (int) $profile['ID'];
break;
}
if ($ids === []) {
return;
}
sort($ids);
for ($i = 0; $i < end($ids); ++$i) {
}
}*/
}
private function getPriceTypes()
{
$dbPriceType = CCatalogGroup::GetList(['SORT' => 'ASC'], [], [], [], ['ID', 'NAME', 'BASE']);