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

Unable to not set default value for Day Of Week field type (even if not required) #726

Closed
nairdo opened this issue Dec 3, 2014 · 1 comment
Assignees

Comments

@nairdo
Copy link
Member

nairdo commented Dec 3, 2014

Created a new group attribute called Meeting Day of Week with Field Type "Day Of Week". The Required checkbox is unchecked. When I try to set the Default Value to empty, and then save, the default value is set back to Sunday. Also when looking at groups, it appears they have an attribute value of Sunday when none was set.

image

@nairdo
Copy link
Member Author

nairdo commented Dec 4, 2014

It looks like the DayOfWeekPicker currently always returns Sunday when nothing is selected:

        public DayOfWeek SelectedDayOfWeek
        {
            get
            {
                int? result = this.SelectedValueAsInt();
                if (result.HasValue)
                {
                    return (DayOfWeek)result.Value;
                }
                else
                {
                    return DayOfWeek.Sunday;
                }
            }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants