From: hickert Date: Fri, 12 Mar 2010 14:55:26 +0000 (+0000) Subject: Prevent multiple categories of the same type in userFilterEditor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0263ebf7c8361121ba2e35e4e80c976a02ed1d26;p=gosa.git 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 --- 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