From e1052c209b9e030070c33c4585b97e1d705a042e Mon Sep 17 00:00:00 2001 From: Daniel Hutzel Date: Mon, 2 Aug 2021 17:20:46 +0200 Subject: [PATCH] Removing workaround for glitch in drafts (#254) * Removing workaround for glitch in drafts * cosmetics --- fiori/app/admin/fiori-service.cds | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fiori/app/admin/fiori-service.cds b/fiori/app/admin/fiori-service.cds index e76e909f..a721c65a 100644 --- a/fiori/app/admin/fiori-service.cds +++ b/fiori/app/admin/fiori-service.cds @@ -1,4 +1,4 @@ -using { AdminService, sap.capire.bookshop } from '../../db/schema'; +using { AdminService } from '../../db/schema'; using from '../common'; // to help UI linter get the complete annotations //////////////////////////////////////////////////////////////////////////// @@ -87,9 +87,8 @@ annotate AdminService.Books.texts with @( annotate AdminService.Books.texts { locale @ValueList:{entity:'Languages',type:#fixed} } -// In addition we need to expose Languages and Books.texts through AdminService +// In addition we need to expose Languages through AdminService as a target for ValueList using { sap } from '@sap/cds/common'; extend service AdminService { - entity Languages as projection on sap.common.Languages; - entity Books.texts as projection on bookshop.Books.texts; + @readonly entity Languages as projection on sap.common.Languages; }