Skip to content

Commit aebbd40

Browse files
committed
Bugfix: Fix a failure when startcolumn is not set in the datepicker instance.
1 parent a4ef743 commit aebbd40

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

classes/wunderbyte_table.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,9 @@ public function apply_filter(string $filter, string &$searchtext = '') {
16871687
is_object($category->datepicker)
16881688
) {
16891689
foreach ($category->datepicker->datepickers as $dp) {
1690-
$allowedfilters[] = $dp->startcolumn;
1690+
if (!empty($dp->startcolumn)) {
1691+
$allowedfilters[] = $dp->startcolumn;
1692+
}
16911693
if (!empty($dp->endcolumn)) {
16921694
$allowedfilters[] = $dp->endcolumn;
16931695
}

0 commit comments

Comments
 (0)