Removed extra appendage of id to the edit user url

This commit is contained in:
Michael Abashian 2016-12-15 16:08:03 -05:00
parent 46922e956f
commit da5ff59081

View File

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