fix issue while updating the grid

parent e557b773
...@@ -325,11 +325,10 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo ...@@ -325,11 +325,10 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
else{ else{
$scope.alertMsg = ""; $scope.alertMsg = "";
var record = {"accountId":$scope.accountId, "accountName":$scope.accountName,"industryType":$scope.industryType,"clientAddress":$scope.clientAddress,"deliveryManagers":$scope.accountManagers()}; var record = {"accountId":$scope.accountId, "accountName":$scope.accountName,"industryType":$scope.industryType,"clientAddress":$scope.clientAddress,"deliveryManagers":$scope.accountManagers()};
var dataRequired = {"accountName":dataToPass.accountName,"industryType":dataToPass.industryType,"clientAddress":dataToPass.clientAddress,"deliveryManagers":dataToPass.deliveryManagers};
record.deliveryManagers = managersSelectedList;
var isFormUpated = myFactory.updateFormDataCheck($scope.myForm,record); var isFormUpated = myFactory.updateFormDataCheck($scope.myForm,dataRequired);
if(isFormUpated == true){ if(isFormUpated == true){
record.deliveryManagers = $scope.accountManagers();
addOrUpdateAccount(record, $scope.templateTitle, "U"); addOrUpdateAccount(record, $scope.templateTitle, "U");
$timeout(function () { updateGrid($scope.templateTitle, record) }, 200); $timeout(function () { updateGrid($scope.templateTitle, record) }, 200);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment