From e821ea669a55967d738d22c206238c4f0ef1b7ca Mon Sep 17 00:00:00 2001 From: hjpalpha <75081997+hjpalpha@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:42:14 +0200 Subject: [PATCH] Fix condition building in matches_schedule_display.lua (#3318) --- .../commons/matches_schedule_display.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/matches_schedule_display/commons/matches_schedule_display.lua b/components/matches_schedule_display/commons/matches_schedule_display.lua index 89c079fcadd..e065b78c6cd 100644 --- a/components/matches_schedule_display/commons/matches_schedule_display.lua +++ b/components/matches_schedule_display/commons/matches_schedule_display.lua @@ -118,25 +118,25 @@ function MatchesTable:buildConditions() conditions:add(pageConditions) if config.startDate then - pageConditions:add(ConditionTree(BooleanOperator.any):add{ + conditions:add(ConditionTree(BooleanOperator.any):add{ ConditionNode(ColumnName('date'), Comparator.eq, config.startDate), ConditionNode(ColumnName('date'), Comparator.gt, config.startDate), }) end if config.endDate then - pageConditions:add(ConditionTree(BooleanOperator.any):add{ + conditions:add(ConditionTree(BooleanOperator.any):add{ ConditionNode(ColumnName('date'), Comparator.eq, config.endDate), ConditionNode(ColumnName('date'), Comparator.lt, config.endDate), }) end if config.matchSection then - pageConditions:add{ConditionNode(ColumnName('extradata_matchsection'), Comparator.eq, config.matchSection)} + conditions:add{ConditionNode(ColumnName('extradata_matchsection'), Comparator.eq, config.matchSection)} end if config.section then - pageConditions:add{ConditionNode(ColumnName('match2bracketdata_sectionheader'), Comparator.eq, config.section)} + conditions:add{ConditionNode(ColumnName('match2bracketdata_sectionheader'), Comparator.eq, config.section)} end return conditions:toString()