Commit ce48883e28487eaaeac7187a9bdceb51d42138ae
1 parent
3e9710aa
KTS-2725
"Archived document should not be found using PropFind" Fixed. Committed By: Conrad Vermeulen Reviewed By: Martin Kirsten git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7738 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
ktwebdav/lib/KTWebDAVServer.inc.php
| @@ -42,7 +42,7 @@ require_once 'Log.php'; // thirdparty PEAR | @@ -42,7 +42,7 @@ require_once 'Log.php'; // thirdparty PEAR | ||
| 42 | 42 | ||
| 43 | $userAgentValue = $_SERVER['HTTP_USER_AGENT']; | 43 | $userAgentValue = $_SERVER['HTTP_USER_AGENT']; |
| 44 | if (stristr($userAgentValue, "Microsoft Data Access Internet Publishing Provider DAV")) { | 44 | if (stristr($userAgentValue, "Microsoft Data Access Internet Publishing Provider DAV")) { |
| 45 | - // Fix for Novell Netdrive | 45 | + // Fix for Novell Netdrive |
| 46 | chdir(realpath(dirname(__FILE__))); | 46 | chdir(realpath(dirname(__FILE__))); |
| 47 | require_once '../../config/dmsDefaults.php'; // This is our plug into KT. | 47 | require_once '../../config/dmsDefaults.php'; // This is our plug into KT. |
| 48 | }else{ | 48 | }else{ |
| @@ -1217,7 +1217,7 @@ class KTWebDAVServer extends HTTP_WebDAV_Server | @@ -1217,7 +1217,7 @@ class KTWebDAVServer extends HTTP_WebDAV_Server | ||
| 1217 | $sQuery .= "ON D.metadata_version_id = DM.id "; | 1217 | $sQuery .= "ON D.metadata_version_id = DM.id "; |
| 1218 | $sQuery .= "LEFT JOIN document_content_version AS DC "; | 1218 | $sQuery .= "LEFT JOIN document_content_version AS DC "; |
| 1219 | $sQuery .= "ON DM.content_version_id = DC.id "; | 1219 | $sQuery .= "ON DM.content_version_id = DC.id "; |
| 1220 | - $sQuery .= "WHERE D.folder_id = ? AND DC.filename = ?"; | 1220 | + $sQuery .= "WHERE D.folder_id = ? AND DC.filename = ? AND D.status_id=1"; |
| 1221 | 1221 | ||
| 1222 | $aParams = array($iFolderID, $sFileName); | 1222 | $aParams = array($iFolderID, $sFileName); |
| 1223 | $iDocumentID = DBUtil::getOneResultKey(array($sQuery, $aParams), 'id'); | 1223 | $iDocumentID = DBUtil::getOneResultKey(array($sQuery, $aParams), 'id'); |