diff --git a/module/job/control.php b/module/job/control.php index 958724cc2c..a834c59787 100644 --- a/module/job/control.php +++ b/module/job/control.php @@ -299,6 +299,7 @@ class job extends control $product = $repo->product; if(strpos($product, ',')) { + /* Do not use `array_intersect()` here. */ $productList = explode(',', $product); $matchedProducts = array(); $productPair = $this->loadModel('product')->getPairs(); diff --git a/module/job/js/create.js b/module/job/js/create.js index 8d112f115f..6904494634 100644 --- a/module/job/js/create.js +++ b/module/job/js/create.js @@ -3,12 +3,6 @@ $(document).ready(function() $('#repo').change(function() { var repoID = $(this).val(); - $.getJSON(createLink('job', 'ajaxGetProductByRepo', 'repoID=' + repoID), function(product) - { - console.log(product); - } - ); - var type = 'Git'; if(typeof(repoTypes[repoID]) != 'undefined') type = repoTypes[repoID]; @@ -97,7 +91,7 @@ $(document).ready(function() $('#jenkinsServerTR .input-group').append("
"); $.getJSON(createLink('jenkins', 'ajaxGetJenkinsTasks', 'jenkinsID=' + jenkinsID), function(tasks) { - html = "