mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
Project playbooks save issue
Fixed defect with project directory not saving for a manual project. Checked for creating/editing a project
This commit is contained in:
parent
b5e521a759
commit
f121228d1a
@ -468,13 +468,13 @@ function ProjectsAdd($scope, $rootScope, $compile, $location, $log, $routeParams
|
||||
}
|
||||
}
|
||||
}
|
||||
if(data.scm_type.value==="manual" ){
|
||||
data.scm_type = "";
|
||||
} else data.scm_type = $scope.scm_type.value;
|
||||
if ($scope.scm_type.value !== '') {
|
||||
delete data.local_path;
|
||||
} else {
|
||||
|
||||
if($scope.scm_type.value === "manual"){
|
||||
data.scm_type = "" ;
|
||||
data.local_path = $scope.local_path.value;
|
||||
} else {
|
||||
data.scm_type = $scope.scm_type.value;
|
||||
delete data.local_path;
|
||||
}
|
||||
|
||||
url = (base === 'teams') ? GetBasePath('teams') + $routeParams.team_id + '/projects/' : defaultUrl;
|
||||
@ -765,13 +765,12 @@ function ProjectsEdit($scope, $rootScope, $compile, $location, $log, $routeParam
|
||||
}
|
||||
}
|
||||
|
||||
if(params.scm_type.value === 'manual'){
|
||||
params.scm_type = '';
|
||||
} else params.scm_type = $scope.scm_type.value;
|
||||
if ($scope.scm_type.value !== '') {
|
||||
delete params.local_path;
|
||||
} else {
|
||||
if($scope.scm_type.value === "manual"){
|
||||
params.scm_type = "" ;
|
||||
params.local_path = $scope.local_path.value;
|
||||
} else {
|
||||
params.scm_type = $scope.scm_type.value;
|
||||
delete params.local_path;
|
||||
}
|
||||
|
||||
Rest.setUrl(defaultUrl);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user