summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3b5c98)
raw | patch | inline | side by side (parent: c3b5c98)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 May 2010 09:26:13 +0000 (09:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 May 2010 09:26:13 +0000 (09:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18361 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/addons/configViewer/class_configViewer.inc | patch | blob | history |
diff --git a/gosa-core/plugins/addons/configViewer/class_configViewer.inc b/gosa-core/plugins/addons/configViewer/class_configViewer.inc
index 99a34440b7033e9038069d68debd57366f307003..c2231037baba1247be79b12a8c6eceaf13fee833 100644 (file)
$all = $this->config->configRegistry->getAllProperties();
foreach($all as $prop){
$post = "{$prop->getClass()}:{$prop->getName()}";
- if(isset($_POST[$post]) && !in_array($prop->getStatus(),array('removed'))){
+ if(isset($_POST[$post]) && $prop->getStatus() != 'removed'){
$prop->setValue(get_post($post));
}
}
function renderList()
{
- // Walk trough all properties and check if there posts for us.
+ // Walk trough all properties and check if we have modified something
$all = $this->config->configRegistry->getAllProperties();
-
- $htmlTooltips = "";
- $jsTooltips = "";
foreach($all as $prop){
$modified = in_array($prop->getStatus(),array('modified','removed'));
if($modified) break;
$smarty = get_smarty();
$smarty->assign('is_modified', $modified);
- $smarty->assign('htmlTooltips', $htmlTooltips);
- $smarty->assign('jsTooltips', $jsTooltips);
return(management::renderList());
}