fix duplicate annotates (#317)
This commit is contained in:
@@ -64,8 +64,9 @@ annotate AdminService.Books.texts with @(
|
|||||||
|
|
||||||
// Add Value Help for Locales
|
// Add Value Help for Locales
|
||||||
annotate AdminService.Books.texts {
|
annotate AdminService.Books.texts {
|
||||||
locale @ValueList:{entity:'Languages'};
|
locale @(
|
||||||
locale @Common.ValueListWithFixedValues:true; //show as drop down, not a dialog
|
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
|
// In addition we need to expose Languages through AdminService as a target for ValueList
|
||||||
using { sap } from '@sap/cds/common';
|
using { sap } from '@sap/cds/common';
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ entity Likes {
|
|||||||
|
|
||||||
// Auto-fill reviewers and review dates
|
// Auto-fill reviewers and review dates
|
||||||
annotate Reviews with {
|
annotate Reviews with {
|
||||||
reviewer @cds.on.insert:$user;
|
reviewer @cds.on:{insert:$user};
|
||||||
date @cds.on.insert:$now;
|
date @cds.on:{insert:$now,update:$now};
|
||||||
date @cds.on.update:$now;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user