diff --git a/www/plugins/es/js/controllers/group-controllers.js b/www/plugins/es/js/controllers/group-controllers.js index ff51915b11895a45e55d3ee47e5455fe37512e2d..5ba8071e4d0f67f9de66a6575221d45014af1444 100644 --- a/www/plugins/es/js/controllers/group-controllers.js +++ b/www/plugins/es/js/controllers/group-controllers.js @@ -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(); diff --git a/www/plugins/es/js/controllers/registry-controllers.js b/www/plugins/es/js/controllers/registry-controllers.js index 44ab53d1ab260c66ce4785d86a110797476de432..bd6930e9d70483af60a81dcc0b0fd22f25d5a7ae 100644 --- a/www/plugins/es/js/controllers/registry-controllers.js +++ b/www/plugins/es/js/controllers/registry-controllers.js @@ -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() {