2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-30 05:47:56 +00:00

fix for undefined issue in ownership transfer

This commit is contained in:
Jay07GIT 2024-11-07 12:22:37 +05:30
parent cb9784515f
commit 6e5bb9a6f2
No known key found for this signature in database
GPG Key ID: AC6B0308EFC79008

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 = {