gpnf-override-parent-merge-tag-on-submission.php
: Fixed an issue with parent merge tags not updating Time value on entry edit.
#905
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
⛑️ Ticket(s): https://secure.helpscout.net/conversation/2725972610/72284
Summary
The snippet gpnf-override-parent-merge-tag-on-submission works for all default values besides the "Hour", "Minute" and "AM/PM" default values from the Time field.
Steps to Reproduce the issue:
The issue was because the time field stores the value as a string on entry, so "11:12 PM". So if the time field has its field ID 7, we will have
$entry[7]
containing that time string "11:12 PM". So we must fetch the string part via7
and not7.1
,7.2
etc. This is what this proposed update focuses on.After Update:
https://www.loom.com/share/be2f4d27721c4af691f0776bf57baa60