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

Possible bug when filtering by contract expiry date #77

Open
archibalduk opened this issue Apr 17, 2024 · 1 comment
Open

Possible bug when filtering by contract expiry date #77

archibalduk opened this issue Apr 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working coming next Next on the to-do list Editor v1 EHM Editor v1

Comments

@archibalduk
Copy link
Owner

image

image

@archibalduk archibalduk added bug Something isn't working coming next Next on the to-do list Editor v1 EHM Editor v1 labels Apr 17, 2024
@archibalduk archibalduk self-assigned this Apr 17, 2024
@archibalduk
Copy link
Owner Author

This is a widespread issue and is caused by the models' data() function returning a string rather than a number or date. For example:

case ContractExpiresClub:
            return i->ContractExpiresClub.getString();

The above should be corrected to:

case ContractExpiresClub:
            return i->ContractExpiresClub.get();

This then returns a date (which can be filtered) rather than a string (which cannot). The difficulty with the fix is that it impacts all date fields within the Editor as they appear as yyyy-mm-dd rather than the locale-specific format. This might also impact some spreadsheet exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working coming next Next on the to-do list Editor v1 EHM Editor v1
Projects
None yet
Development

No branches or pull requests

1 participant