Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
pdo-axelor committed Jan 21, 2021
1 parent f6806d1 commit d49b35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axelor-web/src/main/webapp/js/widget/widget.search.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ function FilterFormCtrl($scope, $element, ViewService) {
if (filter.operator === '=' && filter.value === false) {
filter.operator = 'false';
}

if (field.type === 'date' || field.type === 'datetime') {
if (filter.value) {
filter.value = moment(filter.value).toDate();
Expand All @@ -835,7 +835,7 @@ function FilterFormCtrl($scope, $element, ViewService) {
filter.value2 = moment(filter.value2).toDate();
}
}

if (filter.type == 'many-to-one' || field.type === 'one-to-one') {
filter.targetName = field.targetName;
}
Expand Down

0 comments on commit d49b35d

Please sign in to comment.