Enabled ownership changes for cloned items (#61)

This commit is contained in:
Vincent Salucci 2020-02-01 14:28:45 -06:00 committed by GitHub
parent 3d2e2cb174
commit 08b1a022f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -233,7 +233,8 @@ export class AddEditComponent implements OnInit {
this.cipher.login.uris = null; 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.cipher.collectionIds = this.collections == null ? [] :
this.collections.filter((c) => (c as any).checked).map((c) => c.id); this.collections.filter((c) => (c as any).checked).map((c) => c.id);
} }