Commit 840a4bf65c090ffde25b462fd33c860ed2b4a687
1 parent
88cfcaac
Don't update the document after telling the storage to move it,
otherwise will put back the wrong information for the storage path. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4755 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
2 deletions
browse.php
| ... | ... | @@ -426,7 +426,7 @@ class BrowseDispatcher extends KTStandardDispatcher { |
| 426 | 426 | foreach ($aMoveStack['documents'] as $iDocId) { |
| 427 | 427 | $this->startTransaction(); |
| 428 | 428 | |
| 429 | - $oDoc = Document::Get($iDocId); | |
| 429 | + $oDoc = Document::get($iDocId); | |
| 430 | 430 | if (PEAR::isError($oDoc)) { |
| 431 | 431 | $this->errorRedirectToMain(_('Invalid document.')); |
| 432 | 432 | } |
| ... | ... | @@ -441,7 +441,6 @@ class BrowseDispatcher extends KTStandardDispatcher { |
| 441 | 441 | $oDoc->update(true); |
| 442 | 442 | errorRedirectTo("move", _("There was a problem updating the document's location in the repository storage"), sprintf("fDocumentId=%d&fFolderId=%d", $this->oDocument->getId(), $this->oFolder->getId())); |
| 443 | 443 | } |
| 444 | - $oDoc->update(); | |
| 445 | 444 | |
| 446 | 445 | $sMoveMessage = sprintf("Moved from %s/%s to %s/%s: %s", |
| 447 | 446 | $oDocumentFolder->getFullPath(), | ... | ... |