From 23e09be65f4ff900115e42a1230b3f5df7182ca5 Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Fri, 5 Dec 2014 12:16:22 +0100
Subject: [PATCH] fix placeholder fake in IE8 & 9 that brokes group listing in
 user management - fixes #12525

---
 settings/js/users/filter.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/settings/js/users/filter.js b/settings/js/users/filter.js
index c5944e9b4b..72f2cfc6d2 100644
--- a/settings/js/users/filter.js
+++ b/settings/js/users/filter.js
@@ -70,7 +70,14 @@ UserManagementFilter.prototype.run = _.debounce(function() {
  * @returns string
  */
 UserManagementFilter.prototype.getPattern = function() {
-	return this.filterInput.val();
+	var input = this.filterInput.val(),
+		html = $('html'),
+		isIE8or9 = html.hasClass('lte9');
+	// FIXME - TODO - once support for IE8 and IE9 is dropped
+	if(isIE8or9 && input == this.filterInput.attr('placeholder')) {
+		input = '';
+	}
+	return input;
 };
 
 /**
-- 
GitLab