Skip to content

Commit ff20f86

Browse files
Merge pull request #2424 from jeff-phillips-18/parameters
Automatic merge from submit-queue. Fix for adding non-builder templates to a project Fixes #2420
2 parents c0e7f37 + f8a817c commit ff20f86

File tree

2 files changed

+142
-140
lines changed

2 files changed

+142
-140
lines changed

app/scripts/directives/processTemplateDialog.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@
8585
ctrl.$onInit = function() {
8686
ctrl.loginBaseUrl = DataService.openshiftAPIBaseUrl();
8787
ctrl.preSelectedProject = ctrl.selectedProject = ctrl.project;
88-
if (ctrl.project) {
89-
ctrl.templateProject = ctrl.project;
90-
ctrl.templateProjectChange();
88+
if (ctrl.useProjectTemplate) {
89+
if (ctrl.project) {
90+
ctrl.templateProject = ctrl.project;
91+
ctrl.templateProjectChange();
92+
}
93+
listProjects();
9194
}
92-
listProjects();
9395

9496
ctrl.noProjectsCantCreate = false;
9597
$scope.$on('no-projects-cannot-create', function() {

0 commit comments

Comments
 (0)