summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui
diff options
context:
space:
mode:
authorTeppo Kurki <teppo.kurki@vaadin.com>2015-08-27 16:55:03 +0300
committerVaadin Code Review <review@vaadin.com>2015-09-02 08:59:22 +0000
commit67a1ecf6a12b2b749458022ade72beac398a3038 (patch)
treee483bda00015b33e6af97c6425839102d9c0f6b0 /server/src/com/vaadin/ui
parent4a2380605d171eec96fe7adb83f1de2dcc9edbae (diff)
downloadvaadin-framework-67a1ecf6a12b2b749458022ade72beac398a3038.tar.gz
vaadin-framework-67a1ecf6a12b2b749458022ade72beac398a3038.zip
Do not open detail row if generator is the NULL one (#18663)
Change-Id: Ib853205dae7745ca4af11fb558899e6648e25da8
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r--server/src/com/vaadin/ui/Grid.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java
index f58280c6fe..204f771ee5 100644
--- a/server/src/com/vaadin/ui/Grid.java
+++ b/server/src/com/vaadin/ui/Grid.java
@@ -6597,6 +6597,9 @@ public class Grid extends AbstractFocusable implements SelectionNotifier,
* to hide them
*/
public void setDetailsVisible(Object itemId, boolean visible) {
+ if (DetailsGenerator.NULL.equals(detailsGenerator)) {
+ return;
+ }
datasourceExtension.setDetailsVisible(itemId, visible);
}