From caf7e87ce8a4d447250b74a2e8fb00715bf1c03d Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Fri, 12 Jul 2013 12:55:36 +0200
Subject: [PATCH] OO-623: fix 2 metamorphic queries

---
 src/main/java/org/olat/group/manager/BusinessGroupDAO.java | 4 ++--
 src/main/java/org/olat/repository/RepositoryManager.java   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/olat/group/manager/BusinessGroupDAO.java b/src/main/java/org/olat/group/manager/BusinessGroupDAO.java
index f767f2d6e7f..8978b312f4d 100644
--- a/src/main/java/org/olat/group/manager/BusinessGroupDAO.java
+++ b/src/main/java/org/olat/group/manager/BusinessGroupDAO.java
@@ -477,9 +477,9 @@ public class BusinessGroupDAO {
 		if(params.getManaged() != null) {
 			where = where(query, where);
 			if(params.getManaged().booleanValue()) {
-				query.append("bgi.managedFlags is not null");
+				query.append("bgi.managedFlagsString is not null");
 			} else {
-				query.append("bgi.managedFlags is null");
+				query.append("bgi.managedFlagsString is null");
 			}
 		}
 		
diff --git a/src/main/java/org/olat/repository/RepositoryManager.java b/src/main/java/org/olat/repository/RepositoryManager.java
index 35a60d12b99..ba8cd71d7bc 100644
--- a/src/main/java/org/olat/repository/RepositoryManager.java
+++ b/src/main/java/org/olat/repository/RepositoryManager.java
@@ -1637,9 +1637,9 @@ public class RepositoryManager extends BasicManager {
 		
 		if(params.getManaged() != null) {
 			if(params.getManaged().booleanValue()) {
-				query.append(" and v.managedFlags is not null");
+				query.append(" and v.managedFlagsString is not null");
 			} else {
-				query.append(" and v.managedFlags is null");
+				query.append(" and v.managedFlagsString is null");
 			}
 		}
 		
-- 
GitLab