From: hickert Date: Tue, 12 Jan 2010 12:05:54 +0000 (+0000) Subject: Updated systems filter to include gotoLastUser X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c0aa7bf8b3a378fa83f37762c63864ad7c86bb9;p=gosa.git Updated systems filter to include gotoLastUser git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15159 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc index c5d161208..22010af05 100644 --- a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc +++ b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc @@ -7,8 +7,6 @@ class filterSYSTEMS { $ui = get_userinfo(); global $config; - syslog(1,$filter); - // Check whether the arp handling active or not $arp_handling_active = ($config->search("ArpNewDevice","CLASS",array('tabs')) != ""); diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 4419f078e..1ba0f53aa 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -90,12 +90,12 @@ class systemManagement extends management $this->storagePoints = array_unique($sP); // Build filter -# if (session::global_is_set(get_class($this)."_filter")){ -# $filter= session::global_get(get_class($this)."_filter"); -# } else { + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { $filter = new filter(get_template_path("system-filter.xml", true)); $filter->setObjectStorage($this->storagePoints); -# } + } $this->setFilter($filter); // Build headpage diff --git a/gosa-plugins/systems/admin/systems/system-filter.tpl b/gosa-plugins/systems/admin/systems/system-filter.tpl index d373e1e11..32ada1500 100644 --- a/gosa-plugins/systems/admin/systems/system-filter.tpl +++ b/gosa-plugins/systems/admin/systems/system-filter.tpl @@ -50,6 +50,16 @@ {$NAME} + + + + + + {$USER} + + diff --git a/gosa-plugins/systems/admin/systems/system-filter.xml b/gosa-plugins/systems/admin/systems/system-filter.xml index c3161047b..129560870 100644 --- a/gosa-plugins/systems/admin/systems/system-filter.xml +++ b/gosa-plugins/systems/admin/systems/system-filter.xml @@ -10,7 +10,7 @@ SYSTEMS - (&(|$SERVER $WORKSTATION $TERMINAL $PRINTER $COMPONENT $WINSTATION $INCOMING $OPSI)$NAME) + (&(|$SERVER $WORKSTATION $TERMINAL $PRINTER $COMPONENT $WINSTATION $INCOMING $OPSI)$NAME $USER) dn objectClass cn @@ -18,6 +18,7 @@ gotoMode FAIstate macAddress + gotoLastUser auto @@ -47,11 +48,11 @@ 60 - (cn=*$*) + (gotoLastUser=*$*)false SYSTEMS - (&(objectClass=organizationalRole)(cn=*$NAME*)) + (gotoLastUser=*USER*) cn 0.5 3