Skip to content

Commit

Permalink
Fix onAfterIBlockUpdate
Browse files Browse the repository at this point in the history
change find condition to ['id' => $fields['ID']]
  • Loading branch information
pelmennoteam authored Jan 8, 2017
1 parent 52c4504 commit c5ad6c6
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 @@ -439,7 +439,7 @@ public static function onAfterIBlockUpdate(&$fields)
if ($fields['RESULT']) {
static::deleteCacheByTag('bex_iblock_' . $fields['ID']);
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 c5ad6c6

Please sign in to comment.