diff --git a/ChangeLog b/ChangeLog index 485fb41148..31e7836177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,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 diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php index 3e674e0a78..28aa1f26f0 100644 --- a/libraries/DisplayResults.class.php +++ b/libraries/DisplayResults.class.php @@ -5256,7 +5256,9 @@ class PMA_DisplayResults ); } 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);