Browse Source
Merge pull request #6032 from abpframework/dev-validation-fallback
Validation need to pass if it's not defined
pull/6035/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
|
|
|
@ -349,7 +349,7 @@ namespace Volo.Abp.BlazoriseUI |
|
|
|
|
|
|
|
protected virtual async Task CreateEntityAsync() |
|
|
|
{ |
|
|
|
if (CreateValidationsRef?.ValidateAll() ?? false) |
|
|
|
if (CreateValidationsRef?.ValidateAll() ?? true) |
|
|
|
{ |
|
|
|
await OnCreatingEntityAsync(); |
|
|
|
|
|
|
|
@ -376,7 +376,7 @@ namespace Volo.Abp.BlazoriseUI |
|
|
|
|
|
|
|
protected virtual async Task UpdateEntityAsync() |
|
|
|
{ |
|
|
|
if (EditValidationsRef?.ValidateAll() ?? false) |
|
|
|
if (EditValidationsRef?.ValidateAll() ?? true) |
|
|
|
{ |
|
|
|
await OnUpdatingEntityAsync(); |
|
|
|
|
|
|
|
|