Skip to content

Commit

Permalink
Fix : Can’t use 3 dot menu from list view to send a locked article to…
Browse files Browse the repository at this point in the history
… other desk/stage [SDESK-6809] (#4217)

* Fix : Can’t use 3 dot menu from list view to send a locked article to other desk/stage [SDESK-6809]

* update condition based on authoring open item

* refactored code
  • Loading branch information
devketanpro authored Mar 6, 2023
1 parent 870bedc commit 5e3afd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/apps/ingest/services/SendService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,13 @@ export function SendService(
$rootScope.$broadcast('item:update', {item: _item});
return _item;
});
} else if (!item.lock_user) {
} else {
return api.save('move', {}, {task: data, allPackageItems: config.sendAllPackageItems}, item)
.then((_item) => {
$rootScope.$broadcast('item:update', {item: _item});
if (item.lock_user !== null && getAuthoringWorkspace().getItem()._id === item._id) {
getAuthoringWorkspace().close();
}
if (config.open) {
getAuthoringWorkspace().edit(_item);
}
Expand Down

0 comments on commit 5e3afd5

Please sign in to comment.