1
0
Fork 0
mirror of synced 2025-04-18 16:41:02 +00:00

add checking export systems in updater

This commit is contained in:
Sergey Chazov 2021-09-22 16:53:59 +03:00 committed by Neur0toxine
parent 37a5ece173
commit e9b8a8e42c

View file

@ -22,8 +22,10 @@ function update()
->addSelect('*')
->where('FILE_NAME', 'retailcrm')
->fetchObject();
replaceExportVars($exportSystem);
if ($exportSystem instanceof EntityObject) {
replaceExportVars($exportSystem);
}
}
/**
@ -46,7 +48,7 @@ function replaceExportVars(EntityObject $exportSystem)
array_column($replaceableVars, 'replace'),
$setupVars
);
$exportSystem->set('SETUP_VARS', $newSetupVars);
$exportSystem->save();
}
@ -63,7 +65,7 @@ class UpdaterRetailExportTable extends Main\Entity\DataManager
{
return 'b_catalog_export';
}
/**
* Returns entity map definition.
*