From 59bf66dcd12c997dc6b57982895d93ce91376b3a Mon Sep 17 00:00:00 2001 From: Stefan Kip Date: Thu, 16 Jun 2016 20:11:02 +0200 Subject: [PATCH] Fixed #368 --- app/helpers/sampleLabelHelpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/sampleLabelHelpers.js b/app/helpers/sampleLabelHelpers.js index 99d3100..400f2b6 100644 --- a/app/helpers/sampleLabelHelpers.js +++ b/app/helpers/sampleLabelHelpers.js @@ -13,7 +13,7 @@ var ArchetypeSampleLabelTemplates = (function() { var id = value.split(",")[0]; if (id) { - var entity = scope.services.archetypeLabelService.getEntityById(scope, id, args.entityType); + var entity = scope.services.archetypeCacheService.getEntityById(scope, id, args.entityType); if(entity) { return entity[args.propertyName]; @@ -34,13 +34,13 @@ var ArchetypeSampleLabelTemplates = (function() { switch (value.type) { case "content": if(value.typeData.contentId) { - entity = scope.services.archetypeLabelService.getEntityById(scope, value.typeData.contentId, "Document"); + entity = scope.services.archetypeCacheService.getEntityById(scope, value.typeData.contentId, "Document"); } break; case "media": if(value.typeData.mediaId) { - entity = scope.services.archetypeLabelService.getEntityById(scope, value.typeData.mediaId, "Media"); + entity = scope.services.archetypeCacheService.getEntityById(scope, value.typeData.mediaId, "Media"); } break;