diff --git a/admin/static/js/app.js b/admin/static/js/app.js index 7d70c888..1fdb4053 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -1241,7 +1241,7 @@ angular.module("FICApp") $scope.syncExo = function() { $scope.inSync = true; $http({ - url: "/api/sync/themes/" + $routeParams.themeId + "/exercices/" + $routeParams.exerciceId, + url: "/api/sync/themes/" + $scope.exercice.id_theme + "/exercices/" + $routeParams.exerciceId, method: "POST" }).then(function(response) { $scope.inSync = false;