From 1cd0e3a75d1584fbe573d0f9e5de89a7a240da5c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jul 2007 07:28:47 +0000 Subject: [PATCH] Used notify mechanism in class_tabs. If check() returns an error for a specific pluign the tab header will show a warning symbol. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6928 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_tabs.inc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/include/class_tabs.inc b/include/class_tabs.inc index 4e8ee7249..bb76200fc 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -229,20 +229,28 @@ class tabs $this->save_object(TRUE); $messages= array(); + $current_set = FALSE; + /* Check all plugins */ foreach ($this->by_object as $key => $obj){ if ($obj->is_account || $ignore_account || $obj->ignore_account){ @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $key, "Checking"); - $messages= $obj->check(); + $msg= $obj->check(); if (is_php4()){ $this->by_object[$key]= $obj; } - if (count($messages)){ - $this->current= $key; - break; - } + if (count($msg)){ + $this->by_object[$key]->pl_notify= TRUE; + if(!$current_set){ + $current_set = TRUE; + $this->current= $key; + $messages = $msg; + } + }else{ + $this->by_object[$key]->pl_notify= FALSE; + } } } -- 2.30.2