mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
fix error when sending notification and the document content was replaced
This commit is contained in:
parent
e6220b7090
commit
35702a30b4
|
@ -712,6 +712,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
|||
unlink($tmpFile);
|
||||
return "403 Forbidden";
|
||||
}
|
||||
/* set $content for notification */
|
||||
$content = $lc;
|
||||
} else {
|
||||
if($this->logger)
|
||||
$this->logger->log('PUT: adding new version', PEAR_LOG_INFO);
|
||||
|
@ -748,7 +750,6 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
|||
$controller->setParam('workflow', $workflow);
|
||||
|
||||
if(!$content = $controller->run()) {
|
||||
// if(!$document->addContent('', $this->user, $tmpFile, $name, $fileType, $mimetype, array(), array(), 0)) {
|
||||
if($this->logger)
|
||||
$this->logger->log('PUT: error adding new version', PEAR_LOG_ERR);
|
||||
unlink($tmpFile);
|
||||
|
|
Loading…
Reference in New Issue
Block a user