Skip to content

Commit

Permalink
Fix empty column headers in Multiple Forms mobile view #2237 (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcasual authored Dec 19, 2024
2 parents 616b720 + ade4ef0 commit d1dd190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions future/includes/class-gv-template-view-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,8 @@ public function the_field( \GV\Field $field, \GV\Entry $entry ) {
);

if ( $entry->is_multi() ) {
if ( ! $single_entry = $entry->from_field( $field ) ) {
echo '<td></td>';
return;
}
$form = GF_Form::by_id( $field->form_id );
$single_entry = $entry->from_field( $field );
$form = GF_Form::by_id( $field->form_id );
}

$renderer = new Field_Renderer();
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h
* Custom permalinks were not used on embedded Views.
* When multiple Views were embedded on the same page, it would show the other Views when displaying a single entry.
* Deprecated filter notice when both the Advanced Filter extension (version 3 or newer) and Gravity Flow are active.
* When using the Multiple Forms extension, labels for fields with empty values no longer disappear in the mobile view.

#### 💻 Developer Updates
* Added `gravityview/template/field/csv/tick` filter to programmatically modify the checkbox "check" output in CSV.
Expand Down

0 comments on commit d1dd190

Please sign in to comment.