From 43e5e1ba77b4423f364ae28037c5e130ae6568f5 Mon Sep 17 00:00:00 2001 From: sergem Date: Wed, 13 Jan 2010 15:30:44 +0200 Subject: [PATCH] Fixed copy and move for documents so that it passes the correct parameters --- webservice/clienttools/services/0.9/kt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webservice/clienttools/services/0.9/kt.php b/webservice/clienttools/services/0.9/kt.php index 1c92754..dbc6fbb 100644 --- a/webservice/clienttools/services/0.9/kt.php +++ b/webservice/clienttools/services/0.9/kt.php @@ -1108,7 +1108,7 @@ Fatal error: Cannot unset string offsets in on line 981 $this->logTrace((__METHOD__.'('.__FILE__.' '.__LINE__.')'),'Enter Function'); $kt = &$this->KT; - $response = $kt->copy_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'] ); + $response = $kt->copy_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'], $params ['title'], $params ['filename'] ); if ($response ['status_code'] == 0) { $this->setResponse ( array ('status_code' => 0, 'status' => 'itemupdated', 'icon' => 'success', 'title' => $this->xlate ( 'Document Copied' ), 'message' => $this->xlate ( 'Document has been successfully copied' ) ) ); return true; @@ -1122,7 +1122,7 @@ Fatal error: Cannot unset string offsets in on line 981 $this->logTrace((__METHOD__.'('.__FILE__.' '.__LINE__.')'),'Enter Function'); $kt = $this->KT; - $response = $kt->move_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'] ); + $response = $kt->move_document ( $params ['documentid'], $params ['destfolderid'], $params ['reason'], $params ['title'], $params ['filename'] ); if ($response ['status_code'] == 0) { $this->setResponse ( array ('status_code' => 0, 'status' => 'itemupdated', 'icon' => 'success', 'title' => $this->xlate ( 'Document Moved' ), 'message' => $this->xlate ( 'Document has been successfully moved' ) ) ); return true; -- libgit2 0.21.4