From 1700b8fd109936d06dc11cb7ab1c516d770e1d9d Mon Sep 17 00:00:00 2001 From: dev-krunal Date: Fri, 29 Dec 2023 12:03:29 +0530 Subject: [PATCH] Replace $quiz_options->quiz_id to $quiz_options --- php/classes/class-qsm-contact-manager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/classes/class-qsm-contact-manager.php b/php/classes/class-qsm-contact-manager.php index aa6ed11b4..b3970bef3 100644 --- a/php/classes/class-qsm-contact-manager.php +++ b/php/classes/class-qsm-contact-manager.php @@ -397,7 +397,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d } // Filer Value if ( empty( $contact_disable_autofill ) ) { - $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options->quiz_id ); + $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options ); $fieldAttr .= " value='" . esc_attr( $default_value ) . "' "; } else { $fieldAttr .= " autocomplete='off' "; @@ -433,7 +433,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d case 'email': // Filer Value if ( empty( $contact_disable_autofill ) ) { - $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options->quiz_id ); + $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options ); $fieldAttr .= " value='" . esc_attr( $default_value ) . "' "; } else { $fieldAttr .= " autocomplete='off' "; @@ -461,7 +461,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d case 'date': // Filer Value if ( empty( $contact_disable_autofill ) ) { - $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options->quiz_id ); + $default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options ); $fieldAttr .= " value='" . esc_attr( $default_value ) . "' "; } else { $fieldAttr .= " autocomplete='off' ";