From e924a0cb23f0b1577e36fdd5dd055aea4bdc510f Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期一, 02 九月 2024 16:21:09 +0800
Subject: [PATCH] 批量创建不可用事件的新建日期校验可能存在没有Unit为day的
---
_Main/BL/Type_LibCal_Event/StaticMethod_ValidDate.qbl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/_Main/BL/Type_LibCal_Event/StaticMethod_ValidDate.qbl b/_Main/BL/Type_LibCal_Event/StaticMethod_ValidDate.qbl
index b146f83..c429569 100644
--- a/_Main/BL/Type_LibCal_Event/StaticMethod_ValidDate.qbl
+++ b/_Main/BL/Type_LibCal_Event/StaticMethod_ValidDate.qbl
@@ -16,7 +16,7 @@
feedback_o := Translations::MP_LibCal_Event_ValidDatePeriod();
}
mindate := owner.StartOfPlanning().Date();
- maxdate := maxobject( owner, Period_MP, period, not period.IsHistorical() and period.TimeUnit() = Translations::MP_GlobalParameters_Day() , period.StartDate() );
+ maxdate := maxobject( owner, Period_MP, period, not period.IsHistorical(), period.StartDate() );
if( startdate.Date() < mindate or endtime.Date() > maxdate.StartDate() ){
feedback_o := Translations::MP_LibCal_Event_ValidDate();
--
Gitblit v1.9.3