Commit 7354180b authored by alexpott's avatar alexpott

Issue #2273971 by xjm, martin107: Fixed migrate EntityComment should use the $row->stub() method.

parent 54c28347
......@@ -78,11 +78,11 @@ public static function create(ContainerInterface $container, array $configuratio
* {@inheritdoc}
*/
public function import(Row $row, array $old_destination_id_values = array()) {
if (($stub = !$row->getSourceProperty('entity_type')) && ($state = $this->state->get('comment.maintain_entity_statistics', 0))) {
if ($row->stub() && ($state = $this->state->get('comment.maintain_entity_statistics', 0))) {
$this->state->set('comment.maintain_entity_statistics', 0);
}
$return = parent::import($row, $old_destination_id_values);
if ($stub && $state) {
if ($row->stub() && $state) {
$this->state->set('comment.maintain_entity_statistics', $state);
}
return $return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment