Commented out rtd_location_id override - why did we do that?

This commit is contained in:
snipe 2020-04-09 14:17:39 -07:00
parent b4fa4c77d7
commit 197a84be94
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -646,9 +646,12 @@ class AssetsController extends Controller
$asset_name = request('name', null);
// Set the location ID to the RTD location id if there is one
if ((isset($target->rtd_location_id)) && ($asset->rtd_location_id!='')) {
$asset->location_id = $target->rtd_location_id;
}
// Wait, why are we doing this? This overrides the stuff we set further up, which makes no sense.
// TODO: Follow up here. WTF. Commented out for now.
// if ((isset($target->rtd_location_id)) && ($asset->rtd_location_id!='')) {
// $asset->location_id = $target->rtd_location_id;
// }