1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #4462 from mabashian/4180-edit-user

Removed extra appendage of id to the edit user url
This commit is contained in:
Michael Abashian 2016-12-16 09:04:06 -05:00 committed by GitHub
commit 0e3a66f5cb

View File

@ -311,7 +311,7 @@ export function UsersEdit($scope, $rootScope, $location,
$scope.formSave = function() { $scope.formSave = function() {
$rootScope.flashMessage = null; $rootScope.flashMessage = null;
if ($scope[form.name + '_form'].$valid) { if ($scope[form.name + '_form'].$valid) {
Rest.setUrl(defaultUrl + id + '/'); Rest.setUrl(defaultUrl + '/');
var data = processNewData(form.fields); var data = processNewData(form.fields);
Rest.put(data).success(function() { Rest.put(data).success(function() {
$state.go($state.current, null, { reload: true }); $state.go($state.current, null, { reload: true });