Form end
meta field not correctly populated when the form ends
#8974
Labels
Affects: 4.0.0
Affects: 4.0.1
Affects: 4.1.0
Affects: 4.1.1
Affects: 4.1.2
Affects: 4.2.0
Affects: 4.2.1
Affects: 4.2.2
Affects: 4.2.3
Affects: 4.2.4
Affects: 4.3.0
Affects: 4.3.1
Affects: 4.3.2
Affects: 4.4.0
Affects: 4.4.1
Affects: 4.4.2
Affects: 4.5.0
Affects: 4.5.1
Affects: 4.5.2
Affects: 4.6.0
Enketo
Affects Enketo forms
Type: Bug
Fix something that isn't working as intended
Describe the bug
CHT forms support several meta fields including
start
andend
that are supposed to record the exact time the form began and the form ended.Unfortunately, the
end
value is always just recorded as (almost) the exact same value as thestart
regardless of how long the user takes to fill out the form.To Reproduce
Create a form that contains:
start
andend
do not match the time waiting before submitting the form.Expected behavior
The
end
value should contain the time that the form was submitted.Additional context
Originally reported on the forum.
It appears this is a regression that happened as a result of the Enekto Uplift in
4.0.0
. I tested and confirmed everything works as expected in3.17.2
, but it is broken in4.0.0
.Debugging through the Enekto code flow, it appears the
start
andend
values are preloaded correctly, but theBeforeSave
event is never triggered for the form.The text was updated successfully, but these errors were encountered: