Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Commit

Permalink
Merge pull request #135 from just-boris/master
Browse files Browse the repository at this point in the history
Fix defects navigation
  • Loading branch information
just-boris committed Feb 6, 2014
2 parents f1d11aa + 942626c commit 66ca7eb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ angular.module('allure.defects', []).controller('DefectsCtrl', function($scope,
return $state.is(statename);
};
$scope.setTestcase = function(testcase) {
$scope.testcase = testcase;
$state.go('defects.testcase', {testcaseUid: testcase.uid});
};
$scope.select = function(direction) {
Expand All @@ -24,7 +23,7 @@ angular.module('allure.defects', []).controller('DefectsCtrl', function($scope,
$scope.$on('$stateChangeSuccess', function(event, state, params) {
delete $scope.testcase;
if(params.testcaseUid) {
$scope.setTestcase(testcases.findBy('uid', params.testcaseUid));
$scope.testcase = testcases.findBy('uid', params.testcaseUid);
}
});
});

0 comments on commit 66ca7eb

Please sign in to comment.