dima
June 3, 2024, 11:17am
1
Hi, I am using the Bitwarden Windows Client 2024.4.1 and cannot save a new entry. However, I can change an existing entry. I always get this error message:
Are you trying to save to a shared credential within an Organization collection? If so the error appears to be that you need to select at least one collection for this to exist in the share organization.
Otherwise you will need to save to your individual vault.
I think this was a bug in the Bitwarden Desktop client that should have been fixed in 2024.4.2
bitwarden:main
← bitwarden:vault/PM-6696
opened 11:21AM - 11 Apr 24 UTC
## Type of change
```
- [X] Bug fix
- [ ] New feature development
- [ … ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
```
## Objective
Currently, when creating an item under an organization, collections are not loaded, and because of this, the item cannot be saved. The objective of this ticket is to ensure collections load when displaying the form when adding a new item.
## Code changes
The collections were loaded in ngOnInit, which is not executed until after the first ngOnChanges call. As a result, when ngOnChanges needed the collections immediately (such as when adding a new item), they were unavailable.
To fix this bug, I ensure collections are always loaded before they are needed.
## Screenshots
https://github.com/bitwarden/clients/assets/13024008/9b615c38-e212-44d5-9909-ad6819160fd7
## Before you submit
- Please add **unit tests** where it makes sense to do so (encouraged but not required)
- If this change requires a **documentation update** - notify the documentation team
- If this change has particular **deployment requirements** - notify the DevOps team
- Ensure that all UI additions follow [WCAG AA requirements](https://contributing.bitwarden.com/contributing/accessibility/)
1 Like