Browse Source

Fixed deleted user in user modal

master
Igor Zhukov 10 years ago
parent
commit
6549bd7e17
  1. 2
      app/js/controllers.js

2
app/js/controllers.js

@ -1886,7 +1886,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -1886,7 +1886,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
MtpApiManager.invokeApi('users.getFullUser', {
id: AppUsersManager.getUserInput($scope.userID)
}).then(function (userFullResult) {
if ($scope.override && !userFullResult.user.phone) {
if ($scope.override && $scope.override.phone_number && !userFullResult.user.phone) {
userFullResult.user.phone = $scope.override.phone_number;
userFullResult.user.first_name = $scope.override.first_name;
userFullResult.user.last_name = $scope.override.last_name;

Loading…
Cancel
Save