Et2SelectDayOfWeek: Fix missing all days, weekday, weekend options

This commit is contained in:
nathan 2023-03-30 08:32:26 -06:00
parent 1aa0528642
commit deefd1e0ea
2 changed files with 3 additions and 2 deletions

View File

@ -924,7 +924,8 @@ export class Et2SelectDayOfWeek extends Et2StaticSelectMixin(Et2Select)
for(let index in options)
{
let right = parseInt(options[index].value);
if(!!(int_value & right))
if((int_value & right) == right)
{
expanded_value.push("" + right);
}

View File

@ -345,7 +345,7 @@ export const StaticOptions = new class StaticOptionsType
dow(widget : Et2SelectWidgets, attrs) : Promise<SelectOption[]>
{
var options = /*(widget.rows || "") +*/ ',' + (attrs.other || []).join(',');
var options = (widget.rows || "") + ',' + (attrs.other || []).join(',');
return <Promise<SelectOption[]>>this.cached_server_side(widget, 'select-dow', options, true);
}