From: hickert Date: Wed, 17 Jan 2007 10:44:30 +0000 (+0000) Subject: Added some fixes: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d5dfa22a15cd6c7bb0cbff2ee637291d2f2c7347;p=gosa.git Added some fixes: Hookentry äöü in description failed. Only save Packgae configurations that respresent a valid variable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5582 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }