Skip to content

Commit 0c7a96f

Browse files
authored
gpnf-gflow-auto-attach-child-entries.php: Added snippet to Auto-attach Child Entries to Parent when Editing via Gravity Flow.
1 parent a8cbf01 commit 0c7a96f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-nested-forms/gpnf-gflow-auto-attach-child-entries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
add_filter( 'gpnf_set_parent_entry_id', function( $parent_entry_id ) {
1313
if ( ! $parent_entry_id && is_callable( 'gravity_flow' ) && gravity_flow()->is_workflow_detail_page() ) {
14-
$parent_entry_id = rgget( 'lid' );
14+
$parent_entry_id = rgget( 'lid' ) ? rgget( 'lid' ) : $parent_entry_id;
1515
}
1616
return $parent_entry_id;
1717
} );

0 commit comments

Comments
 (0)