Skip to content

Commit

Permalink
Fix conversion to form (5cc1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Jul 1, 2024
1 parent 89e1308 commit 2d35436
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/documentservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function generateRevisionId($expected_key) {
* @return string
*/
public function getConvertedUri($document_uri, $from_extension, $to_extension, $document_revision_id, $toForm = false) {
$responceFromConvertService = $this->sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, false);
$responceFromConvertService = $this->sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, false, $toForm);

$errorElement = $responceFromConvertService->Error;
if ($errorElement->count() > 0) {
Expand All @@ -112,10 +112,11 @@ public function getConvertedUri($document_uri, $from_extension, $to_extension, $
* @param string $to_extension - Extension to which to convert
* @param string $document_revision_id - Key for caching on service
* @param bool - $is_async - Perform conversions asynchronously
* @param bool $toForm - Convert to form
*
* @return array
*/
public function sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, $is_async) {
public function sendRequestToConvertService($document_uri, $from_extension, $to_extension, $document_revision_id, $is_async, $toForm = false) {
$documentServerUrl = $this->config->getDocumentServerInternalUrl();

if (empty($documentServerUrl)) {
Expand Down

0 comments on commit 2d35436

Please sign in to comment.