← All changes
|
includes/classes/integrations/class-notifier-wsform.php
+2
-2
3.0.0
→
3.1.1
View file →
| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | return $existing_triggers; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | $ws_form = new WS_Form_Form(); |
| 25 | - $forms = $ws_form->db_read_all( '', 'NOT status="trash"', 'label ASC', '', '', false, true ); | |
| 25 | + $forms = $ws_form->db_read_all( '', "NOT status='trash'", 'label ASC', '', '', false, true ); | |
| 26 | 26 | |
| 27 | 27 | if ( empty( $forms ) || ! is_array( $forms ) ) { |
| 28 | 28 | return $existing_triggers; |
| 29 | 29 | } |
| @@ -119,9 +119,9 @@ | ||
| 119 | 119 | return $merge_tags; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | $form_id = (int) $form['id']; |
| 123 | - $excluded_types = array( 'html', 'section', 'captcha', 'page', 'header', 'spacer' ); | |
| 123 | + $excluded_types = array( 'html', 'section', 'captcha', 'page', 'header', 'spacer', 'submit' ); | |
| 124 | 124 | |
| 125 | 125 | foreach ( $fields as $field ) { |
| 126 | 126 | |
| 127 | 127 | if ( empty( $field->id ) || in_array( $field->type, $excluded_types, true ) ) { |