Code

Added some fixes:
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Jan 2007 10:44:30 +0000 (10:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Jan 2007 10:44:30 +0000 (10:44 +0000)
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

plugins/admin/fai/class_faiHookEntry.inc
plugins/admin/fai/class_faiPackage.inc

index 994f7912630635582acd7c7ffa82f1017dd0867a..244af77bde30cf836f0e256d61a0bf2e60e328b0 100644 (file)
@@ -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));
       }
     }
 
index 8b2cc7e833fe3e86a1a798685f9b0000111c84b7..144d965803406e29d5348092e0035a52b09fdeb9 100644 (file)
@@ -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);
       }