diff --git a/src/app/entity/controllers/ListInstanceController.php b/src/app/entity/controllers/ListInstanceController.php index 36dbc61ec52efb9aee315247569140b5c195daeb..987c8b597868d380bf9675dc189b767e9eefcc49 100755 --- a/src/app/entity/controllers/ListInstanceController.php +++ b/src/app/entity/controllers/ListInstanceController.php @@ -149,7 +149,7 @@ class ListInstanceController return $response->withStatus($controller['code'])->withJson(['errors' => $controller['errors']]); } - $resIds = array_column($body['data'], 'resId'); + $resIds = array_column($body, 'resId'); $resIds = array_unique($resIds); foreach ($resIds as $resId) { HistoryController::add([ diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts index 58b52721b00b576b9e1b10f7edc729815ab1b64e..f617225f232f357e692beae8036055ebb31f7be0 100644 --- a/src/frontend/app/viewer/document-viewer.component.ts +++ b/src/frontend/app/viewer/document-viewer.component.ts @@ -763,7 +763,7 @@ export class DocumentViewerComponent implements OnInit { isEditingTemplate() { if (this.editor.mode === 'onlyoffice') { - return this.onlyofficeViewer === undefined; + return this.onlyofficeViewer !== undefined; } else { return this.editInProgress; } @@ -902,7 +902,7 @@ export class DocumentViewerComponent implements OnInit { encodedFile: data.content, format: data.format, resId: this.resId - } + }; return formatdatas; }), exhaustMap((data) => this.http.put(`../../rest/resources/${this.resId}?onlyDocument=true`, data)),