From 08b1a022f6086f4bc270c62061e1928cf50131ea Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Sat, 1 Feb 2020 14:28:45 -0600 Subject: [PATCH] Enabled ownership changes for cloned items (#61) --- src/angular/components/add-edit.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/angular/components/add-edit.component.ts b/src/angular/components/add-edit.component.ts index f25186f84f..9eae5f7572 100644 --- a/src/angular/components/add-edit.component.ts +++ b/src/angular/components/add-edit.component.ts @@ -232,8 +232,9 @@ export class AddEditComponent implements OnInit { (this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) { this.cipher.login.uris = null; } - - if (!this.editMode && this.cipher.organizationId != null) { + + // Allows saving of selected collections during "Add" and "Clone" flows + if ((!this.editMode || this.cloneMode) && this.cipher.organizationId != null) { this.cipher.collectionIds = this.collections == null ? [] : this.collections.filter((c) => (c as any).checked).map((c) => c.id); }