From: hickert Date: Wed, 10 Mar 2010 09:21:07 +0000 (+0000) Subject: Added 'enable' flag to user filter. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f84e5702457e93c4db5a534f8a77267d8b7265db;p=gosa.git Added 'enable' flag to user filter. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16366 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/ihtml/themes/modern/filterEditorEntry.tpl b/gosa-core/ihtml/themes/modern/filterEditorEntry.tpl index 54855f018..71f5e0fcc 100644 --- a/gosa-core/ihtml/themes/modern/filterEditorEntry.tpl +++ b/gosa-core/ihtml/themes/modern/filterEditorEntry.tpl @@ -27,10 +27,16 @@
- {t}Share this filter with others{/t} + {t}Public visible{/t} + +
+ + + {t}Enabled{/t} + -
+
diff --git a/gosa-core/include/class_filterEditorEntry.inc b/gosa-core/include/class_filterEditorEntry.inc index 76e0bcb24..7d347558b 100644 --- a/gosa-core/include/class_filterEditorEntry.inc +++ b/gosa-core/include/class_filterEditorEntry.inc @@ -10,6 +10,7 @@ class filterEditEntry extends plugin public $description = ""; public $selectedCategories = array(); public $share = FALSE; + public $enabled = TRUE; public $filter = "(objectClass=*)"; // The list of all categories mangaged by the current filter object. @@ -31,6 +32,7 @@ class filterEditEntry extends plugin $this->filter = $entry['filter']; $this->selectedCategories = $entry['categories']; $this->share = in_array("share",$entry['flags']); + $this->enable = in_array("enable",$entry['flags']); } $this->orig_name = $this->name; } @@ -65,6 +67,7 @@ class filterEditEntry extends plugin $smarty->assign('name', $this->name); $smarty->assign('filter', $this->filter); $smarty->assign('share', $this->share); + $smarty->assign('enable', $this->enabled); $smarty->assign('description', $this->description); $smarty->assign('selectedCategories', $this->selectedCategories); $smarty->assign('availableCategories', $this->availableCategories); @@ -87,6 +90,7 @@ class filterEditEntry extends plugin // Get posted flags $this->share = isset($_POST['shareFilter']); + $this->enable = isset($_POST['enableFilter']); // Get additional category if(isset($_POST['addCategory'])){ @@ -142,6 +146,9 @@ class filterEditEntry extends plugin if($this->share){ $ret['flags'][] = "share"; } + if($this->enable){ + $ret['flags'][] = "enable"; + } return($ret); } }