Skip to content

Commit 35f569d

Browse files
committed
gpuid-fill-sequence-gaps.php: Fixed an issue with the snippet not working.
1 parent a1c7410 commit 35f569d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gp-unique-id/gpuid-fill-sequence-gaps.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
global $wpdb;
1414

1515
$result = $wpdb->get_results( $wpdb->prepare( "
16-
select value
17-
from {$wpdb->prefix}rg_lead_detail
18-
where form_id = %d and field_number = %d", $form_id, $field_id ) );
16+
select meta_value
17+
from {$wpdb->prefix}gf_entry_meta
18+
where form_id = %d and meta_key = %d", $form_id, $field_id ) );
1919

2020
if ( empty( $result ) ) {
2121
return $uid;
2222
}
2323

24-
$_uids = wp_list_pluck( $result, 'value' );
24+
$_uids = wp_list_pluck( $result, 'meta_value' );
2525
$form = GFAPI::get_form( $form_id );
2626
$field = GFFormsModel::get_field( $form, $field_id );
2727
$numbers = array();

0 commit comments

Comments
 (0)