Skip to content

Commit ee82d8b

Browse files
committed
[fix] Page: 'undefined' error, when trying to access the comment service, in ESCommentController
1 parent b56ebf8 commit ee82d8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

www/plugins/es/js/controllers/group-controllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function ESGroupViewController($scope, $state, $ionicPopover, $ionicHistory, $tr
216216
delete data.record.pictures; // remove, as already stored in $scope.pictures
217217

218218
// Load other data (from child controller)
219-
$scope.$broadcast('$recordView.load', id, esGroup.record.comment);
219+
$scope.$broadcast('$recordView.load', id, esGroup.record);
220220

221221
$scope.loading = false;
222222
UIUtils.loading.hide();

www/plugins/es/js/controllers/registry-controllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ function ESRegistryRecordViewController($scope, $rootScope, $state, $q, $timeout
888888

889889
// Load other data (from child controller)
890890
$timeout(function() {
891-
return $scope.$broadcast('$recordView.load', id, esRegistry.record.comment);
891+
return $scope.$broadcast('$recordView.load', id, esRegistry.record);
892892
})
893893
])
894894
.then(function() {

0 commit comments

Comments
 (0)