# Bug OP-11303 - Email reminders should be enabled by default for Monday-Friday

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11303

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.3.1 |
| Observed in versions |  |
| Sprint | 12.3.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create a new user
2.  Log in as this user
3.  Go to profile settings -\> Email reminders to see on which days they are enabled

### What is the buggy behavior?

  - All days are unchecked

### What is the expected behavior?

1.  As per feature [Email reminder settings (user account)](https://community.openproject.org/projects/openproject/work_packages/38700/activity), days from Monday to Friday should be enabled by default 

Note: in the code, an undefined `user_preferences.settings->workdays` is [the same as having Monday-Friday](https://github.com/opf/openproject/blob/dev/app/models/users/scopes/having_reminder_mail_to_send.rb#L84-L87). So the default is applied, but not correctly reflected in the settings page.

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39625/content">

**OpenProject installation type**

- [ ] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [x] Other (please specify)
  - [x] edge qa 

**OpenProject version**

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-p op-uc-table--cell">12.4.0.dec78c61c7</td><td class="op-uc-p op-uc-table--cell">Wed, 19 Oct 2022 07:35:55 GMT</td></tr></tbody></table></figure>
