fixes
This commit is contained in:
parent
f2312dabcd
commit
53e27399e1
|
@ -177,7 +177,7 @@ public class LockQuery extends QueryBase<LockEntity> {
|
|||
if (this.like != null && !this.like.isEmpty()) {
|
||||
this.like = this.like.replaceAll("%", "");
|
||||
if (this.conventionService.isValidUUID(this.like)){
|
||||
CriteriaBuilder.In<UUID> inClause = queryContext.CriteriaBuilder.in(queryContext.Root.get(LockEntity._id));
|
||||
CriteriaBuilder.In<UUID> inClause = queryContext.CriteriaBuilder.in(queryContext.Root.get(LockEntity._target));
|
||||
inClause.value(UUID.fromString(this.like));
|
||||
predicates.add(inClause);
|
||||
}
|
||||
|
|
|
@ -380,7 +380,7 @@ public class ReferenceQuery extends QueryBase<ReferenceEntity> {
|
|||
return ReferenceEntity._typeId;
|
||||
else if (item.prefix(Reference._createdBy))
|
||||
return ReferenceEntity._createdById;
|
||||
else if (item.prefix(Reference._belongsToCurrentTenant))
|
||||
else if (item.match(Reference._belongsToCurrentTenant))
|
||||
return ReferenceEntity._tenantId;
|
||||
else
|
||||
return null;
|
||||
|
|
|
@ -115,6 +115,7 @@ export class PrefillingSourceEditorComponent extends BaseEditor<PrefillingSource
|
|||
|
||||
buildForm() {
|
||||
this.formGroup = this.editorModel.buildForm(null, this.isDeleted || !this.authService.hasPermission(AppPermission.EditPrefillingSource));
|
||||
if (this.isDeleted || !this.authService.hasPermission(AppPermission.EditPrefillingSource)) this.formGroup.disable();
|
||||
this.prefillingSourceEditorService.setValidationErrorModel(this.editorModel.validationErrorModel);
|
||||
this.addFieldMapping("reference_id", "searchConfiguration");
|
||||
this.addFieldMapping("label", "searchConfiguration");
|
||||
|
|
|
@ -147,7 +147,7 @@ export class DefinitionEditorModel implements DefinitionPersist {
|
|||
|
||||
const baseContext: ValidationContext = new ValidationContext();
|
||||
const baseValidationArray: Validation[] = new Array<Validation>();
|
||||
baseValidationArray.push({ key: 'fields', validators: [Validators.required, BackendErrorValidator(validationErrorModel, `${rootPath}fields`)] });
|
||||
baseValidationArray.push({ key: 'fields', validators: [BackendErrorValidator(validationErrorModel, `${rootPath}fields`)] });
|
||||
|
||||
baseContext.validation = baseValidationArray;
|
||||
return baseContext;
|
||||
|
|
|
@ -163,6 +163,7 @@ export class NotificationTemplateEditorComponent extends BaseEditor<Notification
|
|||
|
||||
buildForm() {
|
||||
this.formGroup = this.editorModel.buildForm(null, this.isDeleted || !this.authService.hasPermission(AppPermission.EditNotificationTemplate));
|
||||
if (this.isDeleted || !this.authService.hasPermission(AppPermission.EditNotificationTemplate)) this.formGroup.disable();
|
||||
this.notificationTemplateEditorService.setValidationErrorModel(this.editorModel.validationErrorModel);
|
||||
NotificationTemplateEditorModel.reApplyValueValidators({
|
||||
formGroup: this.formGroup,
|
||||
|
|
Loading…
Reference in New Issue