Skip to content

Commit 51da0ff

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
add_filter( 'gpui_sequential_unique_id_pre_insert_519_5', function ( $uid, $form_id, $field_id ) {
1313
global $wpdb;
1414

15+
$table_name = GFFormsModel::get_entry_meta_table_name();
16+
1517
$result = $wpdb->get_results( $wpdb->prepare( "
1618
select meta_value
17-
from {$wpdb->prefix}gf_entry_meta
19+
from {$table_name}
1820
where form_id = %d and meta_key = %d", $form_id, $field_id ) );
1921

2022
if ( empty( $result ) ) {

0 commit comments

Comments
 (0)