{"action":"closed","issue":{"url":"https://api.github.com/repos/globaleaks/GlobaLeaks/issues/1655","repository_url":"https://api.github.com/repos/globaleaks/GlobaLeaks","labels_url":"https://api.github.com/repos/globaleaks/GlobaLeaks/issues/1655/labels{/name}","comments_url":"https://api.github.com/repos/globaleaks/GlobaLeaks/issues/1655/comments","events_url":"https://api.github.com/repos/globaleaks/GlobaLeaks/issues/1655/events","html_url":"https://github.com/globaleaks/GlobaLeaks/issues/1655","id":150809658,"number":1655,"title":"Next Step Button not shown","user":{"login":"mcbernie","id":6904517,"avatar_url":"https://avatars.githubusercontent.com/u/6904517?v=3","gravatar_id":"","url":"https://api.github.com/users/mcbernie","html_url":"https://github.com/mcbernie","followers_url":"https://api.github.com/users/mcbernie/followers","following_url":"https://api.github.com/users/mcbernie/following{/other_user}","gists_url":"https://api.github.com/users/mcbernie/gists{/gist_id}","starred_url":"https://api.github.com/users/mcbernie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcbernie/subscriptions","organizations_url":"https://api.github.com/users/mcbernie/orgs","repos_url":"https://api.github.com/users/mcbernie/repos","events_url":"https://api.github.com/users/mcbernie/events{/privacy}","received_events_url":"https://api.github.com/users/mcbernie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/globaleaks/GlobaLeaks/labels/C:%20Client","name":"C: Client","color":"eb6420"},{"url":"https://api.github.com/repos/globaleaks/GlobaLeaks/labels/T:%20Bug","name":"T: Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/globaleaks/GlobaLeaks/milestones/36","html_url":"https://github.com/globaleaks/GlobaLeaks/milestones/2016%20April","labels_url":"https://api.github.com/repos/globaleaks/GlobaLeaks/milestones/36/labels","id":1678940,"number":36,"title":"2016 April","description":"","creator":{"login":"evilaliv3","id":217034,"avatar_url":"https://avatars.githubusercontent.com/u/217034?v=3","gravatar_id":"","url":"https://api.github.com/users/evilaliv3","html_url":"https://github.com/evilaliv3","followers_url":"https://api.github.com/users/evilaliv3/followers","following_url":"https://api.github.com/users/evilaliv3/following{/other_user}","gists_url":"https://api.github.com/users/evilaliv3/gists{/gist_id}","starred_url":"https://api.github.com/users/evilaliv3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilaliv3/subscriptions","organizations_url":"https://api.github.com/users/evilaliv3/orgs","repos_url":"https://api.github.com/users/evilaliv3/repos","events_url":"https://api.github.com/users/evilaliv3/events{/privacy}","received_events_url":"https://api.github.com/users/evilaliv3/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":15,"state":"open","created_at":"2016-04-01T22:03:50Z","updated_at":"2016-04-25T21:04:25Z","due_on":"2016-04-29T22:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-25T10:03:17Z","updated_at":"2016-04-25T21:04:25Z","closed_at":"2016-04-25T21:04:25Z","body":"Found an error in GLClient.controller('SubmissionCtrl'....\r\n\r\n`$scope.lastStepIndex = function() {\r\n    var last_enabled = 0;\r\n\r\n    for (var i = 0; i < $scope.selected_context.questionnaire.steps.length; i++) {\r\n      if (fieldUtilities.isStepTriggered($scope.selected_context.questionnaire.steps[i]), $scope.answers, $scope.total_score) {\r\n        last_enabled = i;\r\n      }\r\n    }\r\n\r\n    return last_enabled;\r\n  };`\r\n\r\nhas wrong if statement need to be:\r\n`if (fieldUtilities.isStepTriggered($scope.selected_context.questionnaire.steps[i], $scope.answers, $scope.total_score)) {`\r\n"}}