Commit 43e5e1ba77b4423f364ae28037c5e130ae6568f5
1 parent
31cb51ce
Fixed copy and move for documents so that it passes the correct parameters
Committed by: Serge Meunier
Showing
1 changed file
with
2 additions
and
2 deletions
webservice/clienttools/services/0.9/kt.php
| ... | ... | @@ -1108,7 +1108,7 @@ Fatal error: Cannot unset string offsets in on line 981 |
| 1108 | 1108 | $this->logTrace((__METHOD__.'('.__FILE__.' '.__LINE__.')'),'Enter Function'); |
| 1109 | 1109 | $kt = &$this->KT; |
| 1110 | 1110 | |
| 1111 | - $response = $kt->copy_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'] ); | |
| 1111 | + $response = $kt->copy_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'], $params ['title'], $params ['filename'] ); | |
| 1112 | 1112 | if ($response ['status_code'] == 0) { |
| 1113 | 1113 | $this->setResponse ( array ('status_code' => 0, 'status' => 'itemupdated', 'icon' => 'success', 'title' => $this->xlate ( 'Document Copied' ), 'message' => $this->xlate ( 'Document has been successfully copied' ) ) ); |
| 1114 | 1114 | return true; |
| ... | ... | @@ -1122,7 +1122,7 @@ Fatal error: Cannot unset string offsets in on line 981 |
| 1122 | 1122 | $this->logTrace((__METHOD__.'('.__FILE__.' '.__LINE__.')'),'Enter Function'); |
| 1123 | 1123 | $kt = $this->KT; |
| 1124 | 1124 | |
| 1125 | - $response = $kt->move_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'] ); | |
| 1125 | + $response = $kt->move_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'], $params ['title'], $params ['filename'] ); | |
| 1126 | 1126 | if ($response ['status_code'] == 0) { |
| 1127 | 1127 | $this->setResponse ( array ('status_code' => 0, 'status' => 'itemupdated', 'icon' => 'success', 'title' => $this->xlate ( 'Document Moved' ), 'message' => $this->xlate ( 'Document has been successfully moved' ) ) ); |
| 1128 | 1128 | return true; | ... | ... |