admin: fix synchronisation when idtheme is not in url
This commit is contained in:
parent
c2c5cf4ce3
commit
cefed3bf23
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user