summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c54c0b4)
raw | patch | inline | side by side (parent: c54c0b4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 25 Jan 2006 09:06:07 +0000 (09:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 25 Jan 2006 09:06:07 +0000 (09:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2573 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_glpiAccount.inc | patch | blob | history | |
plugins/admin/systems/class_glpiAttachmentPool.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc
index a949632ea29f06e2a84a6d4d45dc0397a1f30eda..71036a3ac0e99a27c6a6a0a252c49430880a298e 100644 (file)
/* Remove Attachment fro this tab
*/
-
$once = true;
foreach($_POST as $name => $value){
if((preg_match("/^delAttachment_/",$name))&&($once)){
}
$tmp = $this->handle->getComputerInformations($this->dn);
$this->handle->addDevicesToComputer($this->usedDevices,$tmp[0]['ID']);
- $this->handle->addAttachmentsToComputer($this->usedAttachments,$tmp[0]['ID']);
}
}
diff --git a/plugins/admin/systems/class_glpiAttachmentPool.inc b/plugins/admin/systems/class_glpiAttachmentPool.inc
index 896ed980bb6407af1f6a73f3dd47c8c22ab5e4d0..25c39880cf02135af620abad071c9e72134c6f3c 100644 (file)
}else{
$this->parent->handle->deleteAttachment($this->delAttach);
+ @unlink("/etc/gosa/glpi/".$this->filename);
$attach = $this->parent->handle->getAttachments();
}
}