From: hickert Date: Fri, 20 Jun 2008 09:51:36 +0000 (+0000) Subject: Updated DAK keyring, keep detail status if list is refreshed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0e0608549541be563f8627f0b7bf5fe538736f7;p=gosa.git Updated DAK keyring, keep detail status if list is refreshed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11394 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dak/addons/dak/class_dakkeyring.inc b/gosa-plugins/dak/addons/dak/class_dakkeyring.inc index 921ac13c4..9901f34d3 100644 --- a/gosa-plugins/dak/addons/dak/class_dakkeyring.inc +++ b/gosa-plugins/dak/addons/dak/class_dakkeyring.inc @@ -70,7 +70,21 @@ class dakkeyring extends plugin */ private function refresh_list() { - $this->list = DAK::list_keys($this->Servers[$this->selected_Server]['MAC']); + $details = array(); + foreach($this->list as $entry){ + if(isset($entry['DETAILS']) && $entry['DETAILS'] && isset($entry['ATTRIBUTES']['UID'])){ + $details[] = $entry['ATTRIBUTES']['UID']; + } + } + + $tmp = DAK::list_keys($this->Servers[$this->selected_Server]['MAC']); + $this->list = array(); + foreach($tmp as $entry){ + if(isset($entry['ATTRIBUTES']['UID']) && in_array($entry['ATTRIBUTES']['UID'],$details)){ + $entry['DETAILS'] = TRUE; + } + $this->list[] = $entry; + } }