Skip to content

Commit

Permalink
Bug 1296057 - Pin the selected job upon opening bugfiler (#1793) r=em…
Browse files Browse the repository at this point in the history
…orley
  • Loading branch information
KWierso committed Aug 18, 2016
1 parent 183effa commit 2cb332f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/js/controllers/bugfiler.js
Expand Up @@ -37,6 +37,7 @@ treeherder.controller('BugFilerCtrl', [
* Pre-fill the form with information/metadata from the failure
*/
$scope.initiate = function() {
thPinboard.pinJob($rootScope.selectedJob);
var thisFailure = "";
for(var i = 0; i < allFailures.length; i++) {
for(var j=0; j < $scope.omittedLeads.length; j++) {
Expand Down Expand Up @@ -204,7 +205,6 @@ treeherder.controller('BugFilerCtrl', [
$scope.toggleForm(false);
} else {
// Auto-classify this failure now that the bug has been filed and we have a bug number
thPinboard.pinJob($rootScope.selectedJob);
thPinboard.addBug({id:json.data.success});
$rootScope.$evalAsync($rootScope.$emit(thEvents.saveClassification));

Expand Down

0 comments on commit 2cb332f

Please sign in to comment.