Skip to content

Commit 3da9a52

Browse files
committed
gw-force-default-value.php: Fixed issue where GFFormDisplay was not always available.
1 parent c0047f7 commit 3da9a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-force-default-value.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function add_default_values_to_entry( $entry, $form ) {
102102
* @return mixed|string
103103
*/
104104
public function replace_unreplaced_merge_tags( $text ) {
105-
if ( GFFormDisplay::is_submit_form_id_valid() ) {
105+
if ( isset( $_POST['gform_submit'] ) ) {
106106
return $text;
107107
}
108108
$chars = str_split( trim( $text ) );

0 commit comments

Comments
 (0)