Merge pull request #2786 from normanjaeckel/PatchInMediafile

Changed PATCH to PUT for mediafile update. See #1871.
This commit is contained in:
Emanuel Schütze 2016-12-16 19:15:25 +01:00 committed by GitHub
commit abe6c0f589

View File

@ -34,7 +34,7 @@ angular.module('OpenSlidesApp.mediafiles.update', [
// inject the changed mediafile (copy) object back into DS store // inject the changed mediafile (copy) object back into DS store
Mediafile.inject(mediafile); Mediafile.inject(mediafile);
// save change mediafile object on server // save change mediafile object on server
Mediafile.save(mediafile, { method: 'PATCH' }).then( Mediafile.save(mediafile).then(
function (success) { function (success) {
$scope.closeThisDialog(); $scope.closeThisDialog();
}, },