2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-31 14:25:30 +00:00

Merge pull request #1413 from Jay07GIT/ownership_undefined_fix_2

fix for undefined issue in ownership transfer
This commit is contained in:
Nicholas Spadaccino
2024-11-11 14:45:00 -05:00
committed by GitHub

View File

@@ -233,10 +233,8 @@ angular.module('controller.records', [])
$scope.requestOwnerShipTransfer = function(record, isOwnerShipRequest) { $scope.requestOwnerShipTransfer = function(record, isOwnerShipRequest) {
$scope.currentRecord = angular.copy(record); $scope.currentRecord = angular.copy(record);
if ($scope.currentRecord.recordSetGroupChange == undefined){ if (record.recordSetGroupChange == undefined){
$scope.currentRecord.recordSetGroupChange = {} record.recordSetGroupChange = {}
$scope.currentRecord.recordSetGroupChange.requestedOwnerGroupId = angular.copy(record.ownerGroupId);
$scope.currentRecord.recordSetGroupChange.ownerShipTransferStatus = angular.copy("AutoApproved");
} }
$scope.currentRecord.recordSetGroupChange = angular.copy(record.recordSetGroupChange); $scope.currentRecord.recordSetGroupChange = angular.copy(record.recordSetGroupChange);
$scope.recordModal = { $scope.recordModal = {