We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b822bf1 commit ef6d5b5Copy full SHA for ef6d5b5
facetwp-p2p.php
@@ -366,11 +366,11 @@ public function p2p_created_connection( $p2p_id ) {
366
367
foreach ( $facets_groups as $direction => $facets ) {
368
if ( 'from' === $direction && count( $facets ) > 0 ) {
369
- FWP()->indexer->index( $connexion->p2p_from );
+ FWP()->indexer->index( (int) $connexion->p2p_from );
370
}
371
372
if ( 'to' === $direction && count( $facets ) > 0 ) {
373
- FWP()->indexer->index( $connexion->p2p_to );
+ FWP()->indexer->index( (int) $connexion->p2p_to );
374
375
376
0 commit comments