From d5dfa22a15cd6c7bb0cbff2ee637291d2f2c7347 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Jan 2007 10:44:30 +0000 Subject: [PATCH] =?utf8?q?Added=20some=20fixes:=20Hookentry=20=C3=A4=C3=B6?= =?utf8?q?=C3=BC=20in=20description=20failed.=20Only=20save=20Packgae=20co?= =?utf8?q?nfigurations=20that=20respresent=20a=20valid=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5582 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHookEntry.inc | 4 ++-- plugins/admin/fai/class_faiPackage.inc | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 994f79126..244af77bd 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -101,9 +101,9 @@ class faiHookEntry extends plugin */ foreach($this->attributes as $attrs){ if(get_magic_quotes_gpc()){ - $smarty->assign($attrs,htmlentities(stripslashes($this->$attrs))); + $smarty->assign($attrs,(stripslashes($this->$attrs))); }else{ - $smarty->assign($attrs,htmlentities($this->$attrs)); + $smarty->assign($attrs,($this->$attrs)); } } diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 8b2cc7e83..144d96580 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -514,8 +514,10 @@ class faiPackage extends plugin $pkgattrs['objectClass'][] = "gosaAdministrativeUnitTag"; } - prepare_to_save_FAI_object($pkgdn,$pkgattrs); - + if(in_array($pkgattrs['FAIvariableType'],array("boolean","multiselect","password","select","string","text"))){ + prepare_to_save_FAI_object($pkgdn,$pkgattrs); + } + /* Handle tagging */ $this->handle_object_tagging($pkgdn, $this->gosaUnitTag); } -- 2.30.2