Skip to content

Commit

Permalink
fix: [ANDROAPP-6101] modify complete save action to ignore validation…
Browse files Browse the repository at this point in the history
… strategy
  • Loading branch information
xavimolloy committed May 24, 2024
1 parent bc41366 commit 9690067
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class EventCapturePresenterImpl(
) {
when (eventStatus) {
EventStatus.ACTIVE, EventStatus.COMPLETED -> {
val canSkipErrorFix = canSkipErrorFix(
var canSkipErrorFix = canSkipErrorFix(
hasErrorFields = errorFields.isNotEmpty(),
hasEmptyMandatoryFields = emptyMandatoryFields.isNotEmpty(),
hasEmptyEventCreationMandatoryFields = with(emptyMandatoryFields) {
Expand All @@ -125,6 +125,7 @@ class EventCapturePresenterImpl(
eventMode = eventMode,
validationStrategy = eventCaptureRepository.validationStrategy(),
)
if (eventStatus == EventStatus.COMPLETED) canSkipErrorFix = false
val eventCompletionDialog = configureEventCompletionDialog.invoke(
errorFields,
emptyMandatoryFields,
Expand Down

0 comments on commit 9690067

Please sign in to comment.