From a6e4a6822d38334d29c4709ff409b1f59c554317 Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Tue, 9 Apr 2013 17:16:25 +0200
Subject: [PATCH] OO-531: fix an issue with the flexi table with infinite
 scrolling and IE8/9

---
 .../flexible/impl/elements/table/FlexiDataTablesRenderer.java | 2 +-
 .../flexible/impl/elements/table/FlexiTableModelMapper.java   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiDataTablesRenderer.java b/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiDataTablesRenderer.java
index 166476b5951..e79e2c7f928 100644
--- a/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiDataTablesRenderer.java
+++ b/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiDataTablesRenderer.java
@@ -85,7 +85,7 @@ class FlexiDataTablesRenderer extends AbstractFlexiTableRenderer implements Comp
       .append("		},\n")
       .append("		'aoColumns': [\n");
 		if(ftE.isMultiSelect()) {
-			target.append("			{'mData':'choice', bSortable: false },\n");
+			target.append("			{'mData':'multiSelectCol', bSortable: false },\n");
 		}
 		for(int i=0; i<columnsModel.getColumnCount(); i++) {
 			FlexiColumnModel col = columnsModel.getColumnModel(i);
diff --git a/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiTableModelMapper.java b/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiTableModelMapper.java
index fc23f3c8d5c..1c01d2c35b1 100644
--- a/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiTableModelMapper.java
+++ b/src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/table/FlexiTableModelMapper.java
@@ -123,8 +123,8 @@ public class FlexiTableModelMapper implements Mapper {
 						if(ftE.isMultiSelectedIndex(i)) {
 							sb.append(" checked='checked'");
 						}   
-						sb.append(">");
-						row.put("choice", sb.toString());
+						sb.append("/>");
+						row.put("multiSelectCol", sb.toString());
 					}
 					
 					for(int j=0; j<columnsModel.getColumnCount(); j++) {
-- 
GitLab