From f8de76ad6739ef1b8e88d0a3cd3ddb3068140e44 Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Fri, 17 Apr 2020 17:30:14 +0200
Subject: [PATCH] OO-4635: always return false on onclick in table

---
 .../flexible/impl/elements/table/StaticFlexiCellRenderer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/StaticFlexiCellRenderer.java b/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/StaticFlexiCellRenderer.java
index f8ef2057314..f161fe98517 100644
--- a/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/StaticFlexiCellRenderer.java
+++ b/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/StaticFlexiCellRenderer.java
@@ -191,7 +191,7 @@ public class StaticFlexiCellRenderer implements FlexiCellRenderer, ActionDelegat
 					href = "javascript:;";
 				}
 				String jsCode = FormJSHelper.getXHRFnCallFor(rootForm, id, 1, dirtyCheck, true, false, pair);
-				target.append("<a href=\"").append(href).append("\" onclick=\"").append(jsCode).append(";\"");
+				target.append("<a href=\"").append(href).append("\" onclick=\"").append(jsCode).append("; return false;\"");
 			}
 			
 			if(StringHelper.containsNonWhitespace(linkTitle)) {
-- 
GitLab