Skip to content
Snippets Groups Projects
Commit ee82d8bd authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Page: 'undefined' error, when trying to access the comment service, in ESCommentController

parent b56ebf80
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ function ESGroupViewController($scope, $state, $ionicPopover, $ionicHistory, $tr
delete data.record.pictures; // remove, as already stored in $scope.pictures
// Load other data (from child controller)
$scope.$broadcast('$recordView.load', id, esGroup.record.comment);
$scope.$broadcast('$recordView.load', id, esGroup.record);
$scope.loading = false;
UIUtils.loading.hide();
......
......@@ -888,7 +888,7 @@ function ESRegistryRecordViewController($scope, $rootScope, $state, $q, $timeout
// Load other data (from child controller)
$timeout(function() {
return $scope.$broadcast('$recordView.load', id, esRegistry.record.comment);
return $scope.$broadcast('$recordView.load', id, esRegistry.record);
})
])
.then(function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment