Closes #16786: Clone device location from rack
Fixes: #16786
To fix errors when selecting a rack of a child location being not part of the parent location, the site and location are now always copied from the rack when a device is assigned to a rack.
After re-reading FR #16786 the proposed behavior doesn't seem to be valid. The location to which a device is assigned must match the location of its assigned rack (if any); anything else would be invalid.
Please also see my comment on the FR as it sounds like your use case is better solved by the introduction of new filters.
This PR has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further action is taken.
This PR has been automatically closed due to lack of activity.