No PID created when copying a device
Summary
When copying an existing device and checking the box for PID-creation, the copied device will have no PID.
(However, this issue does not apply to platforms.)
Steps to reproduce
- open the sms
- login
- go to devices
- create a new one
- copy the device with checked box "Create a Persistent Identifier (PID)"
- read the (non-existing) PID of the new device
What is the current bug behavior?
No PID is created for the copied device.
What is the expected correct behavior?
A PID is created for the copied device (different from the original device's PID, of course).
Possible fixes
Comparing with platforms copy function, the following code seems to be missing in pages/devices/copy/deviceId.vue
:
if (this.copyOptions.persistentIdentifierShouldBeCreated) {
this.deviceToCopy.persistentIdentifier = await this.createPid(savedDeviceId)
}
ToDo's
-
Bug reproduced -
Cause found -
Bug fixed