diff --git a/grails-app/assets/javascripts/profileEditor/directives/imageUpload.js b/grails-app/assets/javascripts/profileEditor/directives/imageUpload.js index e89c6361..5cd3af0d 100644 --- a/grails-app/assets/javascripts/profileEditor/directives/imageUpload.js +++ b/grails-app/assets/javascripts/profileEditor/directives/imageUpload.js @@ -99,12 +99,11 @@ profileEditor.directive('imageUpload', function ($browser, $http, config) { } $scope.save = function() { - console.log("Scope save", $scope, $scope.opusId) if ($scope.image) { $scope.metadata.created = util.formatLocalDate($scope.metadata.created); $cacheFactory.get('$http').removeAll(); - profileService.saveImageMetadata($scope.opusId, $scope.image.imageId, $scope.metadata).then(function(data) { + profileService.saveImageMetadata(util.getEntityId("opus"), $scope.image.imageId, $scope.metadata).then(function(data) { if (angular.isDefined($scope.callbackHandler)) { $scope.callbackHandler(data); } diff --git a/grails-app/assets/javascripts/profileEditor/services/ProfileService.js b/grails-app/assets/javascripts/profileEditor/services/ProfileService.js index ec7331eb..5924513f 100644 --- a/grails-app/assets/javascripts/profileEditor/services/ProfileService.js +++ b/grails-app/assets/javascripts/profileEditor/services/ProfileService.js @@ -587,7 +587,6 @@ profileEditor.service('profileService', function ($http, util, $cacheFactory, co }, saveImageMetadata: function(opusId, imageId, data) { - console.log('saveImageMetadata', opusId, data); $log.debug("Saving image metadata: " + imageId); var future = null; if (opusId && imageId) {