From 10818633c5fcbdb072abf27c4365c9434bbb7cc7 Mon Sep 17 00:00:00 2001 From: Suzana Dirla Date: Mon, 16 Apr 2018 12:39:21 +0300 Subject: [PATCH] [ACA-1308] User can't upload a new version for a document in "Favorties" view list from the drop down menu (#308) fix bug - made sure to always get the allowableOperations for selected node --- src/app/common/directives/node-versions.directive.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/common/directives/node-versions.directive.ts b/src/app/common/directives/node-versions.directive.ts index 2e1bcb30a..f822e1b82 100644 --- a/src/app/common/directives/node-versions.directive.ts +++ b/src/app/common/directives/node-versions.directive.ts @@ -58,13 +58,9 @@ export class NodeVersionsDirective { const contentEntry = this.selection[0].entry; const nodeId = (contentEntry).nodeId; - if (nodeId) { - // get the node entry that was shared: - this.apiService.getInstance().nodes.getNodeInfo(nodeId).then(entry => this.openVersionManagerDialog(entry)); - - } else { - this.openVersionManagerDialog(contentEntry); - } + this.apiService.getInstance().nodes.getNodeInfo(nodeId || contentEntry.id, { + include: ['allowableOperations'] + }).then(entry => this.openVersionManagerDialog(entry)); }