From 840a4bf65c090ffde25b462fd33c860ed2b4a687 Mon Sep 17 00:00:00 2001 From: nbm Date: Wed, 1 Feb 2006 13:08:18 +0000 Subject: [PATCH] Don't update the document after telling the storage to move it, otherwise will put back the wrong information for the storage path. --- browse.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browse.php b/browse.php index 426eb8d..1891948 100755 --- a/browse.php +++ b/browse.php @@ -426,7 +426,7 @@ class BrowseDispatcher extends KTStandardDispatcher { foreach ($aMoveStack['documents'] as $iDocId) { $this->startTransaction(); - $oDoc = Document::Get($iDocId); + $oDoc = Document::get($iDocId); if (PEAR::isError($oDoc)) { $this->errorRedirectToMain(_('Invalid document.')); } @@ -441,7 +441,6 @@ class BrowseDispatcher extends KTStandardDispatcher { $oDoc->update(true); 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())); } - $oDoc->update(); $sMoveMessage = sprintf("Moved from %s/%s to %s/%s: %s", $oDocumentFolder->getFullPath(), -- libgit2 0.21.4