force:source:manifest:create --fromorg creates manifest with missing namespace on CMT records and layouts
- Dominant language
- No language data
- Stars
- 571
- Forks
- 80
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 3
Description
### Summary
When using force:source:manifest:create --fromorg, namespace is missing on managed Custom Metadata Type records and Layouts
Side effect: If there are two CMT records with same developername but different QualifiedApiName (one managed and other unmanaged), only one is present in package.xml
### Steps To Reproduce:
Step 1: Install any managed package with public (not protected) Custom Metadata Type record and managed Layout
Step 2: Run ```sfdx force:source:manifest:create --fromorg org_alias -n package.xml -c managed```
### Expected result
```
namespace__Object.namespace__Layout
Layout
namespace__Object.namespace__Record
CustomMetadata
```
### Actual result
```
namespace__Object.Layout
Layout
namespace__Object.Record
CustomMetadata
```
### System Information
Tried in bash and cmd.
sfdx-cli/7.166.1 win32-x64 node-v16.15.1
Contributor guide
Assessment
This issue has not been assessed yet.