fixed issue #186

parent 9514118c
......@@ -170,9 +170,7 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
//console.log('Saved method as template:' + JSON.stringify(data));
// Add to select method
$scope.$apply(function(){
$scope.methods_available.push({ id: method.id, name: method.name });
});
$scope.methods_available.push({ id: method.id, name: method.name, lang: $scope.user.lang});
ngToast.success({
content: $translate.instant('method_saved', {method_name: method.name}),
......
......@@ -100,7 +100,8 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
var new_instruction = {
method: method.id,
name: $translate.instant("new_instruction"),
objective: $translate.instant("new_objective")
objective: $translate.instant("new_objective"),
lang: $scope.user.lang
};
$http
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment