Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some filter date range options doesn't work #86

Closed
scicali opened this issue Apr 21, 2022 · 1 comment · Fixed by #89
Closed

Some filter date range options doesn't work #86

scicali opened this issue Apr 21, 2022 · 1 comment · Fixed by #89
Labels
Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds Type: Bug Something isn't working

Comments

@scicali
Copy link

scicali commented Apr 21, 2022

Date range types

last_7_days
next_7_days
last_30_days
next_30_days
last_month
next_month
last_year
this_year
next_year

doesn't work

Issue

If u try to filter a date field with range search enable, using those types in ListView nothing happen

Expected Behavior

Filter must work

Actual Behavior

Nothing happen

Possible Fix

In public\legacy\include\portability\FilterMapper\filter_operator_map.php

last_7_days
next_7_days
last_30_days
next_30_days
last_month
next_month
last_year
this_year
next_year

types hasn't item 'range_{field}_{type}' => '[{operator}]' set

Behavior can be override in custom/application/Ext/FilterOperatorMap/filter_operator_map.ext.php,
but I Think it's a bug

Steps to Reproduce

  1. Enable date type to range search
  2. Filter date field with those range types

Your Environment

  • SuiteCRM Version used: 8.1
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox 99.0.1
  • Environment name and version (e.g. MySQL, PHP 7): php 7.4
  • Operating System and version (e.g Ubuntu 16.04): DEbian 11
@johnM2401 johnM2401 added Type: Bug Something isn't working Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds labels Apr 28, 2022
clemente-raposo added a commit to clemente-raposo/SuiteCRM-Core that referenced this issue May 2, 2022
clemente-raposo added a commit to clemente-raposo/SuiteCRM-Core that referenced this issue May 5, 2022
clemente-raposo added a commit to clemente-raposo/SuiteCRM-Core that referenced this issue May 5, 2022
- Only allow searching by date and not by time
clemente-raposo added a commit that referenced this issue May 11, 2022
- Only allow searching by date and not by time
@lukio
Copy link
Contributor

lukio commented Dec 15, 2023

Hi @clemente-raposo I'm working on 8.3.0 suitecrm version that has #89 included, but the filter date range it's not working :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants