fix duplicate annotates (#317)

This commit is contained in:
Daniel Hutzel
2022-02-04 16:19:54 +01:00
committed by GitHub
parent 8197559065
commit bc03cae550
2 changed files with 5 additions and 5 deletions

View File

@@ -64,8 +64,9 @@ annotate AdminService.Books.texts with @(
// Add Value Help for Locales
annotate AdminService.Books.texts {
locale @ValueList:{entity:'Languages'};
locale @Common.ValueListWithFixedValues:true; //show as drop down, not a dialog
locale @(
ValueList.entity:'Languages', Common.ValueListWithFixedValues, //show as drop down, not a dialog
)
}
// In addition we need to expose Languages through AdminService as a target for ValueList
using { sap } from '@sap/cds/common';

View File

@@ -32,7 +32,6 @@ entity Likes {
// Auto-fill reviewers and review dates
annotate Reviews with {
reviewer @cds.on.insert:$user;
date @cds.on.insert:$now;
date @cds.on.update:$now;
reviewer @cds.on:{insert:$user};
date @cds.on:{insert:$now,update:$now};
}