Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= 1.9 =
- Updated the plugin to support installing packages through Packagist.
- Fixed and issue where the value of fields stored as arrays is type casted to a string when displaying an entry in the terminal.

= 1.8 =
- Fixed a bug where the verify checksums command fails even when it should succeed.
Expand Down
4 changes: 4 additions & 0 deletions includes/class-gf-cli-entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public function get( $args, $assoc_args ) {
$value = $this->get_entry_value( $entry, $field_id, $form );
}

if ( is_array( $value ) ) {
$value = json_encode( $value );
}

// Add the data gathered to the $rows array.
$rows[] = array( 'ID' => $field_id, 'Field' => $label, 'Value' => (string) $value );
}
Expand Down