Commit b125af632a21c23e4b00dccf278f5cfa73b1e01d

Authored by Mark Holtzhausen
1 parent b9dd3a20

Download Error Fix

ktwebservice/KTDownloadManager.inc.php
... ... @@ -105,6 +105,8 @@ class KTDownloadManager
105 105 'document_id'=>$doc_id,
106 106 'session'=>$this->session,
107 107 'download_date'=>date('Y-m-d H:i:s'),
  108 + 'content_version'=>$document->document->getContentVersionId(),
  109 + 'filesize'=>$document->document->getFileSize(),
108 110 'hash'=>$hash
109 111 ),
110 112 array('noid'=>true)
... ...
lib/documentmanagement/Document.inc
... ... @@ -169,6 +169,8 @@ class Document {
169 169  
170 170 function getStoragePath() { return $this->_oDocumentContentVersion->getStoragePath(); }
171 171 function setStoragePath($sNewValue) { $this->_oDocumentContentVersion->setStoragePath($sNewValue); }
  172 +
  173 + function getContentVersion(){return $this->_oDocumentContentVersion->getVersion();}
172 174  
173 175  
174 176  
... ...
webservice/clienttools/services/3.6.1/kt.php
... ... @@ -482,7 +482,7 @@ class kt extends client_service {
482 482 */
483 483  
484 484 $response['status_code']=0;
485   - $response['message']=$url;
  485 + $response['message']=$url.'&apptype='.$params['app_type'];
486 486 $response['filename']=$docname;
487 487 $this->addDebug('effective params',$params);
488 488 $this->setResponse($response);
... ... @@ -651,8 +651,7 @@ class kt extends client_service {
651 651 $this->response= array('status_code'=>0, 'document_id'=>$document_id, 'content_id'=>$content_id);
652 652 }
653 653  
654   -
655   - function get_all_client_policies(){
  654 + function get_all_client_policies(){
656 655 $config=KTConfig::getSingleton();
657 656 $this->addDebug('KTConfig Singleton',$config);
658 657  
... ...