Merge pull request #4466 from mabashian/4174-edit-team

Set the url before attempting to update the team
This commit is contained in:
Michael Abashian
2016-12-16 09:04:47 -05:00
committed by GitHub

View File

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