Skip to content

Commit

Permalink
bug phpmyadmin#4729 Display original field when using "Relational dis…
Browse files Browse the repository at this point in the history
…play column" option and display column is empty

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jan 26, 2015
1 parent a8e0f35 commit c91a28b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog
4.3.9.0 (not yet released)
- bug #4728 Incorrect headings in routine editor
- bug #4730 Notice while browsing tables when phpmyadmin pma database exists, but not all the tables
- bug #4729 Display original field when using "Relational display column" option and display column is empty

4.3.8.0 (2015-01-24)
- bug Undefined constant PMA_DRIZZLE
Expand Down
4 changes: 3 additions & 1 deletion libraries/DisplayResults.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5733,7 +5733,9 @@ private function _getRowData(
);
} else {

if ($relational_display == self::RELATIONAL_DISPLAY_COLUMN) {
if ($relational_display == self::RELATIONAL_DISPLAY_COLUMN
&& ! empty($map[$meta->name][2])
) {
// user chose "relational display field" in the
// display options, so show display field in the cell
$result .= $default_function($dispval);
Expand Down

0 comments on commit c91a28b

Please sign in to comment.