Skip to content

Commit

Permalink
Save text language ID as null if empty when indexing products
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 1, 2019
1 parent 1ebb782 commit 3bbc0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mshoplib/src/MShop/Index/Manager/Text/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ protected function saveTexts( \Aimeos\MW\DB\Statement\Iface $stmt, \Aimeos\MShop
}

$content = join( ' ', $map['content'] );
$this->saveText( $stmt, $item->getId(), $siteid, $langId, $map['url'], $map['name'], $content, $date );
$this->saveText( $stmt, $item->getId(), $siteid, $langId ?: null, $map['url'], $map['name'], $content, $date );
}
}

Expand Down

0 comments on commit 3bbc0f7

Please sign in to comment.