From 0263ebf7c8361121ba2e35e4e80c976a02ed1d26 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Mar 2010 14:55:26 +0000 Subject: [PATCH] Prevent multiple categories of the same type in userFilterEditor git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16497 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userFilterEditor.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc index e2ebf9d2a..3cdbc6f2c 100644 --- a/gosa-core/include/class_userFilterEditor.inc +++ b/gosa-core/include/class_userFilterEditor.inc @@ -188,6 +188,7 @@ class userFilterEditor extends plugin }elseif(isset($_POST['availableCategory']) && !empty($_POST['availableCategory'])){ $this->selectedCategories[] = get_post('availableCategory'); } + $this->selectedCategories = array_unique($this->selectedCategories); } // Remove categories -- 2.30.2