Commit 54d36ec3 authored by Matt Dwyer's avatar Matt Dwyer

Fix bug in {querystring:foo} where if "foo" was blank it wouldn't replace the mergetag

parent 074bb98e
Pipeline #2151 failed with stage
......@@ -274,11 +274,11 @@ final class NF_Display_Render
$default_value = ( isset( $settings[ 'default' ] ) ) ? $settings[ 'default' ] : null;
$default_value = apply_filters('ninja_forms_render_default_value', $default_value, $field_type, $settings);
if ( $default_value ) {
if ( $default_value || $default_value === '' ) {
$default_value = preg_replace( '/{[^}]}/', '', $default_value );
if ($default_value) {
if ($default_value || $default_value === '') {
$settings['value'] = $default_value;
ob_start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment