# Bug COSTS-12 - "During the last days" filter input in cost reports shows a calendar popup

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-12

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 15.5.0 |
| Observed in versions | 12.1.0 |
| Bug found in version (deprecated) | 12.1.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Jens Ulferts |
| Product manager |  |
| Developers | Jens Ulferts |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

  

1.  Login as a user with permissions to view cost reports.
2.  Add a filter condition Date(spent)  to be &quot;during the last days&quot;
3.  Click on the filter input box besides it.
4.  Attempt to enter the number of days. 

### What is the buggy behavior?

  

a. The filter input field shows a calendar even though it makes no sense when the filter selected is last X days. 

b. If you enter days (eg 10) and then click the input again, the calendar pops up clearing the previously entered input value. 

### What is the expected behavior?

  

The field should be an input field (preferably integer) but not a calendar field. 

The input should be preserved when the field is clicked later.

  

### **Logs**

Frontend issue, no logs relevant

### Screenshots and other files

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/33589/content"></div></figure>

  

### Environment information

  

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [x] Packaged installation
    *   Debian 11
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

_v12.1.4_

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Language**

English both for browser and Openproject.
