Added line breaks to join expressions.
$grids = $this->Application->getUnitOption($event->Prefix, 'Grids'); $grids['ReviewsSection']['Fields']['CatalogItemName'] = array('filter_block' => 'grid_like_filter'); $this->Application->setUnitOption($event->Prefix, 'Grids', $grids);
to ReviewsEventHandler::OnAfterConfigRead, after this line:
$this->Application->setUnitOption($event->Prefix, 'CalculatedFields', $calculated_fields);
- go to Website & Content → Comments
- filter grid by just added CatalogItemName column
- confirm, that no SQL error happened