Commit fddcb81d292104d625818ea9dbb4d89ecdcbb5eb

Authored by kevin_fourie
1 parent 380fb732

KTS-1671

"Validation breaks: Unable to move file into folder after copied file has been deleted."
Fixed.

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6303 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktcore/KTDocumentActions.php
@@ -930,7 +930,7 @@ class KTDocumentMoveAction extends KTDocumentAction { @@ -930,7 +930,7 @@ class KTDocumentMoveAction extends KTDocumentAction {
930 $extra_errors['name'] = _kt('A document with this title already exists in your chosen folder. Please choose a different folder, or specify a new title for the copied document.'); 930 $extra_errors['name'] = _kt('A document with this title already exists in your chosen folder. Please choose a different folder, or specify a new title for the copied document.');
931 } 931 }
932 932
933 - $bFileClash = KTDocumentUtil::fileExists($this->oFolder, $this->oDocument->getFilename()); 933 + $bFileClash = KTDocumentUtil::fileExists($data['browse'], $this->oDocument->getFilename());
934 if ($bFileClash && isset($data['filename'])) { 934 if ($bFileClash && isset($data['filename'])) {
935 $filename = $data['filename']; 935 $filename = $data['filename'];
936 $bFileClash = KTDocumentUtil::fileExists($this->oFolder, $filename); 936 $bFileClash = KTDocumentUtil::fileExists($this->oFolder, $filename);