Skip to content

Commit

Permalink
Merge pull request #16 from denispugachev/on_after_iblock_add_constru…
Browse files Browse the repository at this point in the history
…ctor_fix

Исправление ошибки отсутствия записи в кеше при создании объекта в хендлере \Bex\Tools\Iblock\IblockFinder::onAfterIBlockAdd
  • Loading branch information
niksamokhvalov authored Mar 17, 2017
2 parents d5643e1 + a09cd44 commit 9e0aff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Iblock/IblockFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public static function onAfterIBlockAdd(&$fields)
{
if ($fields['ID'] > 0) {
static::deleteCacheByTag('bex_iblock_new');
new static(['type' => $fields['IBLOCK_TYPE_ID'], 'code' => $fields['CODE']]);
new static(['id' => $fields['ID']]);
static::delayCacheCollector($fields['ID']);
}
}
Expand Down

0 comments on commit 9e0aff9

Please sign in to comment.