Skip to content

Commit

Permalink
Merge pull request #418 from ProcessMaker/bugfix/FOUR-14948
Browse files Browse the repository at this point in the history
QA Observation bugfix/FOUR-14948: Clear Task Button in Inbox Rules page does not clear Date and Datetime fields
  • Loading branch information
ryancooley authored Apr 12, 2024
2 parents eddc915 + 58022fc commit c073e64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/FormDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ export default {
},
methods: {
updateValue(newValue) {
// allow to send empty value or null to Date and Datetime fields
if (newValue === null || newValue === undefined) {
this.$set(this, "date", '');
return;
}
if (!!newValue && newValue.length > 0) {
const date = moment.tz(newValue, checkFormats, true, getTimezone());
if (!date.isValid()) return "";
Expand Down

0 comments on commit c073e64

Please sign in to comment.