From b0e0608549541be563f8627f0b7bf5fe538736f7 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jun 2008 09:51:36 +0000 Subject: [PATCH] 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 --- gosa-plugins/dak/addons/dak/class_dakkeyring.inc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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; + } } -- 2.30.2