ImportExport: Fix export date filters lost their "All" option

This commit is contained in:
nathan 2023-12-06 13:54:13 -07:00
parent cd523e6664
commit 17676a2112
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ export class Et2DateRange extends Et2InputWidget(FormControlMixin(LitElement))
?readonly=${this.readonly}
?required=${this.required}
placeholder=${ifDefined(this.placeholder)}
emptyLabel=${ifDefined(this.emptyLabel)}
.emptyLabel=${ifDefined(this.emptyLabel)}
.select_options=${Et2DateRange.relative_dates}></et2-select>`;
}

View File

@ -84,7 +84,7 @@ class importexport_widget_filter extends Etemplate\Widget\Transformer
$type = $field['type'] = 'date-range';
$options = '';
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'relative', $relative_dates);
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'blur', $field['empty_label'] ? $field['empty_label'] : lang('All...'));
$this->setElementAttribute($form_name . '[' . self::$prefix . $lname . ']', 'emptyLabel', $field['empty_label'] ? $field['empty_label'] : lang('All...'));
break;
case 'ajax_select' :
// Set some reasonable defaults for the widget