Issue with time field
Closed this issue · 7 comments
Front provides 2 values to the back
formFieldDateService
"2020-10-10T00:00:00.000Z"
formFieldTimeService
"1970-01-01T01:18:07.000Z"
that should work fine on the back
backRepo.stage.OnInitCommitFromBackCallback does not seem to be non nil
even if one did the
hook := new(BeforeCommitImplForManualyEditedFormStage)
stageForManualyEditedForm.OnInitCommitFromFrontCallback = hook
Very strange. at the debugger, the call is nilled
strangely, the probe for the manual probe does not work anymore.... on FX, created issue #32
When the the Field is updated, the stage.go is not updated. Let's follow the control flow of the client.
- The probe form stack
- go/probe/form_callback.go
formfielddatetimeFormCallback.probe.stageOfInterest.Commit()
is not performed as intended.
the stage "manualy edited form" has no callback function in
backRepo.stage.OnInitCommitFromBackCallback
OK, it get it, the hook is performed on OnInitCommitFromFrontCallback, Front and the probe expects the hook on the on OnInitCommitFromBackCallback Back
We have to put both
OK, the FormFieldDate is not working properly.
At the debug, on notices that the value sent to the back is not correct. The problem is therefore in the front ?
The function CopyFormFieldDateToFormFieldDateAPI
does not copy the time.Time field