admin: fix synchronisation when idtheme is not in url

This commit is contained in:
nemunaire 2019-10-26 09:06:06 +02:00
parent c2c5cf4ce3
commit cefed3bf23

View File

@ -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;