Code

Fixed w3c errors
[gosa.git] / plugins / admin / systems / class_glpiAccount.inc
index a949632ea29f06e2a84a6d4d45dc0397a1f30eda..6e5cb2ccd5773a766c62bb1d7676dc0c17b60d77 100644 (file)
@@ -129,7 +129,7 @@ class glpiAccount extends plugin
       $smarty->assign($attr,array());
       $smarty->assign($attr."ACL"," disabled ");
     }
-    foreach(array("type","FK_glpi_enterprise","os","tech_num","comments","contact_num") as $attr){
+    foreach(array("type","FK_glpi_enterprise","os","tech_num","comments","contact_num","AttachmentsDiv") as $attr){
       $smarty->assign($attr,"");
       $smarty->assign($attr."ACL"," disabled ");
     }
@@ -224,7 +224,6 @@ class glpiAccount extends plugin
     
     /* Remove Attachment fro this tab 
      */
-
     $once = true;
     foreach($_POST as $name => $value){
       if((preg_match("/^delAttachment_/",$name))&&($once)){
@@ -552,7 +551,7 @@ class glpiAccount extends plugin
     */
 
     $divlist = new divSelectBox("glpiAttachmentsList");
-    $divlist-> SetHeight(150); 
+    $divlist-> SetHeight(120); 
     $atts = $this->getUsedAttachments(true);
     $downlink = "<a href='get_attachment.php?id=%s' target='_blank'>%s</a>";
     $del_link = "<input type='image' src='images/edittrash.png' name='delAttachment_%s'>";
@@ -672,7 +671,6 @@ class glpiAccount extends plugin
       }
       $tmp = $this->handle->getComputerInformations($this->dn);
       $this->handle->addDevicesToComputer($this->usedDevices,$tmp[0]['ID']);
-      $this->handle->addAttachmentsToComputer($this->usedAttachments,$tmp[0]['ID']);
     }
   }