Skip to content

Commit

Permalink
Fix output buffering issue with GF Nested Forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Aug 29, 2019
1 parent 65241b9 commit 0ea364d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/IssuersField.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,7 @@ public function get_field_input( $form, $value = '', $entry = null ) {

<?php

$input = ob_get_contents();

ob_clean();
$input = ob_get_clean();
}

if ( is_admin() ) {
Expand Down
5 changes: 1 addition & 4 deletions src/PaymentMethodsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ public function get_field_input( $form, $value = '', $entry = null ) {
$field_css_id = sprintf( '#field_%1$s_%2$s', $this->formId, $this->id );

if ( ! is_admin() && 'icons' === substr( $this->pronamicPayDisplayMode, 0, 5 ) ) {

ob_start();

?>
Expand Down Expand Up @@ -521,9 +520,7 @@ public function get_field_input( $form, $value = '', $entry = null ) {

<?php

$input = ob_get_contents();

ob_clean();
$input = ob_get_clean();
}

if ( is_admin() ) {
Expand Down

0 comments on commit 0ea364d

Please sign in to comment.