PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/fields/FrmFieldCombo.php +5 -9 6.31 → trunk View file →
@@ -434,12 +434,8 @@
434 434 if ( class_exists( 'FrmProEntryMeta' ) && FrmProEntryMeta::skip_required_validation( $this->field ) ) {
435 435 return $errors;
436 436 }
437 437
438 - if ( class_exists( 'FrmProFieldsHelper' ) && ! FrmProFieldsHelper::is_field_visible_to_user( $this->field ) ) {
439 - return $errors;
440 - }
441 -
442 438 $blank_msg = FrmFieldsHelper::get_error_msg( $this->field, 'blank' );
443 439 $sub_fields = $this->get_processed_sub_fields();
444 440
445 441 // Validate not empty.
@@ -461,15 +457,15 @@
461 457 * @return array
462 458 */
463 459 public function get_export_headings() {
464 460 $headings = array();
465 - $field_id = $this->field->id ?? $this->field['id'];
466 - $field_name = $this->field->name ?? $this->field['name'];
467 - $field_key = $this->field->field_key ?? $this->field['field_key'];
461 + $field_id = is_object( $this->field ) ? $this->field->id : $this->field['id'];
462 + $field_name = is_object( $this->field ) ? $this->field->name : $this->field['name'];
468 463 $sub_fields = $this->get_processed_sub_fields();
469 464
465 + // Include sub-field headings.
470 466 foreach ( $sub_fields as $name => $sub_field ) {
471 - $headings[ $field_id . '_' . $name ] = $field_name . ' (' . $field_key . ') - ' . $sub_field['label'];
467 + $headings[ $field_id . '_' . $name ] = $field_name . ' - ' . $sub_field['label'];
472 468 }
473 469
474 470 return $headings;
475 471 }
@@ -507,9 +503,9 @@
507 503 * Gets inputs container attributes.
508 504 *
509 505 * @return array
510 506 */
511 - protected function get_inputs_container_attrs() {
507 + public function get_inputs_container_attrs() {
512 508 return array(
513 509 'class' => 'frm_combo_inputs_container',
514 510 'id' => 'frm_combo_inputs_container_' . $this->field_id,
515 511 );