Fixes T8613. This was pretty straightforward, I just never dug into it originally.
rawResultLimit = 0 just means "no limit", so the fix is to only apply a limit if it is set to some nonzero value.
Also modernize a few pieces of code.
Differential D15653
Account for raw limits properly in CalendarEventQuery epriestley on Apr 7 2016, 12:23 PM. Authored by Tags None Referenced Files
Subscribers None
Details Fixes T8613. This was pretty straightforward, I just never dug into it originally. rawResultLimit = 0 just means "no limit", so the fix is to only apply a limit if it is set to some nonzero value. Also modernize a few pieces of code. I'm actually not sure this can actually be hit normally? I faked setGenerateGhosts(true) into an unrelated query, hit the fatal, then fixed it.
Diff Detail
Event TimelineComment Actions We should probably add a check here that requires either a limit or an end date, because otherwise you may generate infinite events. Let me add that safety test. Comment Actions
|